Skip to main content

Checkbox

A checkbox allows the user to select one or more items from a set.

Import

Checkbox.Root

Represents the checkbox itself.

Props

State

  • checked: boolean - Whether the checkbox is currently ticked
  • disabled: boolean - Whether the component should ignore user interaction
  • readOnly: boolean - Whether the user should be unable to tick or untick the checkbox
  • required: boolean - Whether the user must tick the checkbox before submitting a form
  • indeterminate: boolean - Whether the checkbox is in a mixed state

Checkbox.Indicator

Visual indicator for the checked/indeterminate state.

Props