fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
31 lines (30 loc) • 1.17 kB
TypeScript
import { BaseInputComponentProps } from '../BaseInputComponent/constants';
import { SpacingTypes } from '../../Element/constants';
export type RadioButtonElementType = HTMLDivElement;
export type RadioButtonProps = Omit<BaseInputComponentProps<RadioButtonElementType>, "as" | "onChange" | "value"> & {
value: string;
checked?: boolean;
onChange?: (value: string) => void;
};
export interface RadioGroupOptionProps extends Omit<RadioButtonProps, "onChange" | "checked" | "name"> {
id: string;
label: string;
value: string;
}
export interface RadioGroupCustomProps {
name: string;
options: RadioGroupOptionProps[];
value?: string;
defaultValue?: string;
onChange?: (value: string) => void;
}
export type RadioGroupProps = Omit<RadioButtonProps, keyof RadioGroupCustomProps> & RadioGroupCustomProps & {
align?: "horizontal" | "vertical";
equaliseWidth?: boolean;
equalizeWidth?: boolean;
};
export interface RadioTabGroupCustomProps {
size?: SpacingTypes;
}
export type RadioTabGroupProps = Omit<RadioGroupProps, keyof RadioTabGroupCustomProps> & RadioTabGroupCustomProps;
//# sourceMappingURL=constants.d.ts.map