Table of Contents#
Default Checkbox#
Checkbox with Label#
Disabled Checkbox#
Checkbox Props#
Prop | Type | Default | Description |
---|---|---|---|
label | string | - | The label of the checkbox. |
checked | boolean | - | The checked state of the checkbox. |
onChange | () => void | - | The onChange event of the checkbox. |
disabled | boolean | - | The disabled state of the checkbox. |
className | string | - | The className of the checkbox. |
size | sm md lg | md | The size of the checkbox. |
variant | default rounded | default | The variant of the checkbox. |
checkedIcon | React.ReactNode | - | The checked icon of the checkbox. |
checkboxClassName | string | - | The className of the checkbox. |
labelClassName | string | - | The className of the label. |