/** * Checkbox Component - Lynx 版 MUI Checkbox * 100% 一比一复刻 MUI Checkbox * * 支持三种状态:unchecked、checked、indeterminate * 使用 CSS 实现图标而非 SVG * * 对应 MUI: packages/mui-material/src/Checkbox/Checkbox.js */ import './Checkbox.css'; import checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses'; export { checkboxClasses, getCheckboxUtilityClass }; export type CheckboxColor = 'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning'; export type CheckboxSize = 'small' | 'medium'; export interface CheckboxProps { /** 自定义类名 */ className?: string; /** 样式类覆盖 */ classes?: Partial; /** 是否选中 */ checked?: boolean; /** 选中图标 */ checkedIcon?: any; /** 默认是否选中 */ defaultChecked?: boolean; /** 是否禁用 */ disabled?: boolean; /** 是否禁用涟漪 */ disableRipple?: boolean; /** 未选中图标 */ icon?: any; /** ID 属性 */ id?: string; /** 是否 indeterminate 状态 */ indeterminate?: boolean; /** indeterminate 图标 */ indeterminateIcon?: any; /** 默认是否 indeterminate */ defaultIndeterminate?: boolean; /** 传递给 input 元素的 props */ inputProps?: Record; /** input 元素的 ref */ inputRef?: any; /** name 属性 */ name?: string; /** 是否必填 */ required?: boolean; /** 颜色 - 默认 primary */ color?: CheckboxColor; /** 尺寸 */ size?: CheckboxSize; /** 内联样式 */ style?: Record; /** sx 属性 */ sx?: Record; /** 值 */ value?: string; /** 点击事件 */ bindtap?: (event?: any) => void; onChange?: (event: any, checked: boolean) => void; } export declare function Checkbox(props: CheckboxProps): JSX.Element; export default Checkbox; //# sourceMappingURL=index.d.ts.map