UNPKG

stone-kit

Version:
18 lines (17 loc) 637 B
import { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react'; export type CheckBoxVariant = 'light' | 'dark'; export type CheckBoxSize = 'small' | 'medium' | 'large'; export interface CheckBoxProps { children?: ReactNode; isChecked: boolean | undefined; error?: boolean; modifierClassesStyle?: string[]; emitIsChecked?: (isChecked: boolean) => void; onClick?: () => void; variant?: CheckBoxVariant; size_s?: boolean; size_l?: boolean; size_m?: boolean; text?: string; } export type CheckBoxComponent = ForwardRefExoticComponent<CheckBoxProps & RefAttributes<HTMLInputElement>>;