Skip to main content
Kaleidoscope

Checkbox

Useful for when you want to select zero or more options from a list.

Default

What you get out of the box with this component:

Editable example

Disabled variant

To disable a checkbox, preventing user interaction, use the isDisabled prop.

Editable example

Size variants

We support three sizes (small, medium and large). The medium and large variants both have a "blue" selected color.

Use the large variant for selection of larger interface elements such as .

Editable example

Theming

We also supports a dark theme for all variants:

Editable example

With multiple check boxes

You could make use of the toggleKey property to identify which item is being clicked, for cases where you don't want to define the onChange function in-line.

Editable example

Best practices

  • Use a RadioButtonGroup when only one option can be selected from a list
  • For turning a single option on or off, use a Toggle
  • For selecting one item from a set of options with small labels or icons, use a

Accessibility

  • A label is always required to support users with screen-readers; if you don't want it to be visible, use the labelHidden prop