Skip to content

Checkbox

Selects independent options and communicates partial selection when needed.

Design

Functional preview

Running with stable DS HTML and CSS, without a component JavaScript runtime.

Loading functional preview…

Anatomy

1 2 3 4
1 Label (.ds-checkbox-label) — wraps checkbox + text, extends click target.
2 Input (.ds-checkbox) — styled native <input type="checkbox">.
3 Checkmark — CSS pseudo-element, visible when checked.
4 Indeterminate dash — CSS pseudo-element, visible when indeterminate = true.

Default

Indeterminate

Sizes

Error Group

Select at least one option Please select at least one option.

Disabled

States

StateCSS triggerVisual changeToken
Unchecked---Neutral box fill and bordercomponent.checkbox.box.fill.unchecked.default, component.checkbox.box.border-color.unchecked.default
Unchecked hover:hoverDarker neutral box border/fillcomponent.checkbox.box.fill.unchecked.hover, component.checkbox.box.border-color.unchecked.hover
Checked:checkedPrimary box fill with checkmarkcomponent.checkbox.box.fill.checked.default, component.checkbox.mark.fill.checked.default
Checked hover:checked:hoverDarker primary box fillcomponent.checkbox.box.fill.checked.hover, component.checkbox.mark.fill.checked.hover
Indeterminate:indeterminatePrimary box fill with indeterminate markcomponent.checkbox.box.fill.indeterminate.default, component.checkbox.mark.fill.indeterminate.default
Focus:focus-visible2px outline ringcomponent.checkbox.focus-ring.radius.default + component.focus-ring.*
Error group.ds-checkbox-group--errorError border on controls and message below groupcomponent.checkbox.box.border-color.unchecked.error, semantic.feedback.error.content-default
Disabled[disabled]Muted box, mark and labelcomponent.checkbox.box.fill.*.disabled, semantic.content.disabled

Figma properties

PropertyTypeDefaultDescription
Show LabelBooleantrueShows or hides the control label
LabelText"Rótulo"Label text (label/md)
Show DescriptionBooleanfalseShows descriptive text below the label
DescriptionText"Texto descritivo"Multiline description text (body/sm)
Show Helper TextBooleanfalseShows helper text below the description
Helper TextText"Texto auxiliar"Caption/sm annotation (content/secondary)