Skip to content
PixiKit

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
NameTypeDefaultDescription
checkedbooleanNoneWhether it is checked, when you hold the state.
defaultCheckedbooleanfalseWhether it starts checked, when the checkbox holds the state.
onCheckedChange(checked: boolean) => voidNoneCalled with the new state when the user toggles it.
indeterminatebooleanfalseShows a dash for a mixed state, such as a parent of partly chosen items.
labelstringNoneThe text next to the box.
descriptionstringNoneA line of help under the label.
descriptionInlinebooleanfalseSets 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.
errorstringNoneAn error message. It marks the box invalid and is linked to the input.
disabledbooleanfalseTurns the checkbox off.
namestringNoneThe field name sent with a form.
valuestringNoneThe value sent with a form when checked.
classNamestringNone

More forms components in Pro

View all

Related