Radio Button and Checkbox Created

This commit is contained in:
2025-07-30 23:10:17 -04:00
parent cb8c2c23be
commit f6f77c9d42
29 changed files with 892 additions and 18 deletions

42
lib/types/Input.d.ts vendored
View File

@@ -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;
}