Components
← All components

Checkbox

stimeo--checkbox

Adds parent and child linkage and the partly-selected state to ordinary checkboxes.

  • Core
  • Checkbox

Fills in what a browser checkbox cannot express on its own. From the state of the children, the parent becomes all, some or none, and the partly-selected state is announced properly to screen readers. Pressing the parent sets every child at once. A parent is optional: a group of children alone still publishes which of the three states it is in, for CSS to use. When checkboxes come and go, when Turbo swaps the markup, or when the form is reset, the state is worked out again from the children. The tick itself and the look of partly-selected are drawn by this demo's CSS.

running
Notification settings

1 selected

Keyboard

KeyAction
Space Toggle the focused checkbox (native).