U.S. flagA digital services project by Flexion

Checkbox

formUSWDS-derived

A custom-styled checkbox with tile variant support.

Reference: USWDS documentation ↗

Variants

Checked

Default

Options

Disabled

Indeterminate

Tile

Tile checkboxes

Contract

Class mapping

USWDSFlexNotes
usa-checkbox.flex-checkboxBase checkbox wrapper
usa-checkbox__input.flex-checkbox__inputHidden native checkbox input
usa-checkbox__label.flex-checkbox__labelVisible label with pseudo-element indicators
usa-checkbox__input--tiledata-variant="tile"Tile variant with bordered card appearance

Verified properties

font-familyfont-sizeline-heightcolorcursorfont-weightpadding-leftpositiondisplay

Behavior promises

  • ○ Focus ring visible on keyboard focus
  • ○ Checked state shows checkmark indicator
  • ○ Disabled state prevents interaction
  • ○ Indeterminate state shows dash indicator

Source CSS

Base styles: Choice Input Label Base