@univerjs/design v0.5.0-beta.1Docs


Interface: ICheckboxProps

Properties

PropertyTypeDescriptionDefined in
checked?booleanUsed for setting the currently selected value Default falsesubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:39
children?ReactNode-submodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:23
className?stringThe class name of the checkbox groupsubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:28
contentClassName?string-submodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:64
disabled?booleanSpecifies whether the checkbox is disabled Default falsesubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:57
indeterminate?booleanUsed for setting the checkbox to indeterminate Default falsesubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:45
onChange?(value: string | number | boolean) => voidSet the handler to handle click eventsubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:62
style?CSSPropertiesThe style of the checkbox groupsubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:33
value?string | number | booleanUsed for setting the currently selected value Only used when the checkbox is in a groupsubmodules/univer/packages/design/src/components/checkbox/Checkbox.tsx:51