Inputs
Checkbox
Select independent options or confirm a choice as part of a form.
Anatomy
- Checkbox
- Checkmark
- Option label
Configuration
Checkbox states
Hover over an enabled control or use Tab to see its hover and focus styles.
Confirm that you reviewed the publishing settings.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Enabled label |
--cc-muted-foreground | — | Disabled label | |
--cc-primary | — | Checked and mixed box background and border | |
--cc-primary-hover | — | Checked and mixed box background and border on hover | |
--cc-primary-foreground | — | Checkmark and mixed-state dash | |
--cc-critical-soft-foreground | — | Validation message | |
--cc-critical-border | — | Invalid box border | |
--cc-field-background | — | Unchecked box background | |
--cc-field-border | — | Unchecked box border | |
--cc-field-hover-border | — | Unchecked box border on hover | |
--cc-focus-ring | — | Keyboard focus ring |