Checkbox
A native checkbox whose check draws itself and whose dash marks a mixed state, with a label, a description and a group with select all.
pixikit.com/docs/components/checkbox
Customize
Default checked
Indeterminate
Description inline
Side
Size
Disabled
Props
14| Name | Type | Default | Description |
|---|---|---|---|
checked | boolean | None | Whether it is checked, when you hold the state. |
defaultChecked | boolean | false | Whether it starts checked, when the checkbox holds the state. |
onCheckedChange | (checked: boolean) => void | None | Called with the new state when the user toggles it. |
indeterminate | boolean | false | Shows a dash for a mixed state, such as a parent of partly chosen items. |
label | string | None | The text next to the box. |
description | string | None | A line of help under the label. |
descriptionInline | boolean | false | Sets the description on the same line as the label. |
side | "start" | "end" | "start" | Which side of the text the box is on. |
size | "sm" | "md" | "md" | The size of the box. |
error | string | None | An error message. It marks the box invalid and is linked to the input. |
disabled | boolean | false | Turns the checkbox off. |
name | string | None | The field name sent with a form. |
value | string | None | The value sent with a form when checked. |
className | string | None |