Checkbox

Checkboxes allow the user to select one or more items from a set.

Overview

Toggles
checked, disabled

All options

States

checked \ stateenableddisabled
unchecked
checked

Labels

label \ checkeduncheckedchecked
none
label
label + secondLabel

Examples

With second label

Add a secondary text below the checkbox label for additional context (left aligned).

Accessibility

Keyboard

Each checkbox is a real input, so it takes Tab focus, toggles with Space and shows a focus ring. The tick scales in when checked.

Props

PropTypeRequiredDescription
labelstringNo—
secondLabelstringNo—
checkedbooleanNo—
onChange(checked: boolean) => voidNo—
disabledbooleanNo—