StealThis .dev

Checkbox Group

Styled checkbox inputs with label, indeterminate state, checkbox card variant, and a grouped fieldset with select-all functionality.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Checkbox Group

Fully styled checkboxes with a custom appearance built on real <input type="checkbox"> elements for full accessibility.

States

unchecked · checked · indeterminate · disabled

Variants

  • Basic — label to the right
  • Card — full clickable card with title + description, border highlights on check
  • Group with select-all — master checkbox manages child state; goes indeterminate when partially selected

Implementation note

The indeterminate state must be set via JavaScript (el.indeterminate = true) — it has no HTML attribute.