Resonance Logo

Checkbox

A checkbox lets users toggle an option on or off, or select multiple items from a set, using a native input element paired with a visible label.

Demo

Interact with the checkboxes below using a mouse or keyboard. Press Tab to move focus to a checkbox and Space to toggle its checked state. Try both the simple labeled variant and the variant with additional description text.

Scenario: Checkbox with label

Check this box to receive our newsletter via email.

Scenario: Checkbox with additional state information

You must agree to the terms and conditions before proceeding.

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Input element — The native <input type="checkbox"> that holds the checked state and receives keyboard focus.
  2. Label — A <label> element associated with the input via for/id, providing the accessible name.
  3. Description text — Optional hint or context copy linked to the input via aria-describedby.
  4. Error message — Inline validation text that can also be linked via aria-describedby when the field is invalid.
  5. Group container — A <fieldset> with a <legend> used when multiple checkboxes form a logical set.

Accessibility Behavior

Common Mistakes

Why This Matters

Checkboxes are among the most common form controls on the web. When they lack proper labeling or keyboard support, users who rely on screen readers hear nothing meaningful when they focus the control, and users who navigate by keyboard cannot interact at all. This creates a complete barrier to submitting forms — affecting sign-ups, preference settings, consent flows, and any other interaction that depends on binary choices.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Scenario: Checkbox with label

Scenario: Checkbox with additional state information

Reference Implementation