mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Radio Button and Checkbox Created
This commit is contained in:
42
lib/types/Input.d.ts
vendored
42
lib/types/Input.d.ts
vendored
@@ -105,9 +105,47 @@ export interface FileInputProps {
|
||||
maxSize?: number;
|
||||
showFileName?: boolean;
|
||||
showSize?: boolean;
|
||||
defaultValue?: File;
|
||||
value?: File;
|
||||
onChange?: (newFile: File | undefined) => void;
|
||||
disabled?: boolean;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
|
||||
export type CheckboxSize = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
||||
|
||||
export interface CheckboxProps {
|
||||
id?: string;
|
||||
className?: string;
|
||||
labelClassName?: string;
|
||||
name?: string;
|
||||
size?: CheckboxSize;
|
||||
box?: boolean;
|
||||
onChange?: (newChecked: boolean) => void;
|
||||
checked?: boolean;
|
||||
defaultChecked?: boolean;
|
||||
strokeWidth?: number;
|
||||
value?: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export type RadioButtonSize = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
||||
|
||||
export interface RadioButtonProps {
|
||||
id?: string;
|
||||
className?: string;
|
||||
labelClassName?: string;
|
||||
size?: RadioButtonSize;
|
||||
value: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface RadioListProps {
|
||||
id?: string;
|
||||
className?: string;
|
||||
name?: string;
|
||||
value?: string;
|
||||
onChange?: (value: string) => void;
|
||||
defaultValue?: string;
|
||||
direction?: "vertical" | "horizontal";
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user