Skip to content

Selection Controls ​

Checkboxes, radio buttons, and toggle switches for user selections. All controls meet WCAG 2.1 Level AA with proper keyboard navigation and screen reader support.

Checkboxes ​

Radio Buttons ​

Toggle Switches ​

Off
On
Disabled

Control Sizes ​

Small

Medium (Default)

Token Mapping ​

How tokens flow through the three-layer system: value → primitive → semantic → component.

Border
#3f3f46→zinc-700→--ring→--checkbox-border
Checked bg
#3b82f6→blue-500→--info→--checkbox-checked-bg
Checked border
#3b82f6→blue-500→--info→--checkbox-checked-border
Checkmark
#ffffff→white→--foreground→--checkbox-checkmark
Label
#d4d4d8→zinc-300→--foreground→--checkbox-label
Focus outline
#3f3f46→zinc-700→--ring→--checkbox-focus
PrimitiveSemanticComponent

Accessibility Guidelines ​

✓
Keyboard NavigationSpace toggles selection, Arrow keys navigate radio groups.
✓
Focus IndicatorsClear visible focus ring with 3:1 contrast ratio.
✓
Label AssociationClicking labels activates the associated control.
✓
State AnnouncementsScreen readers announce checked/unchecked states.