Checkbox

Checkbox with label, description, error state, and indeterminate support.

Example

We send updates monthly

Props

NameTypeDefaultRequiredDescription
labelstringRequiredAccessible label text
descriptionstringNoHelper text
errorstringNoError message
requiredbooleanNoMarks as required
hideLabelbooleanfalseNoVisually hides label
indeterminatebooleanfalseNoShows indeterminate state

Accessibility

  • Uses native <input type="checkbox"> for full screen reader support
  • aria-checked="mixed" for indeterminate state
  • aria-invalid when error is present

Related Tokens

--checkbox-surface--checkbox-on-surface--checkbox-border--checkbox-checked--checkbox-gap--checkbox-label-font-weight