Checkbox

Checkbox

Checkbox component allows users to select multiple options.

Examples
API

Checkbox props extends the input HTML attributes (except type and onChange).

PropdescriptionTypeDefault
children

The label content of the checkbox

React.ReactNode

checked

Whether the checkbox is checked (controlled)

boolean

undefined

defaultChecked

Whether the checkbox is checked by default (uncontrolled)

boolean

false

disabled

Whether the checkbox is disabled

boolean

false

onChange

Callback when the checked state changes

(checked: boolean) => void

undefined

colors

Custom color variables for the checkbox

{
primary?: string

border?: string

text?: string

inputBg?: string

checkIcon?: string

}

undefined