All components

INPUTS / COMPONENTS

Checkbox

Choose independent options.

Live component14 documented props

About checkbox

Checkboxes are essential for user-friendly and efficient selection and interaction in the UI, simplifying decision-making and enhancing usability across applications, forms, and websites.

01

Anatomy

Shared parts, named consistently.

  1. 1
    Checkbox inputRequired

    Selection control (input) that can be checked or unchecked, and pushed into different states.

  2. 2
    Checkmark iconRequired

    Icon used to indicate checked state.

  3. 3
    Label

    The label of the Checkbox.

  4. 4
    Minus iconRequired

    Icon used to indicate the indeterminate state.

  5. 5
    Validation message

    Message to add context to the error state.

Try the default

A working example with the shared V1 visual language.

When to use

Use for independent choices and multi-selection. Use a mixed parent state when only some children are selected.

Tab focuses; Space toggles. A native indeterminate state communicates mixed selection.

Related components

Source & adaptation

V1 semantic colors, DM Sans typography, compact controls, and responsive layouts. The API table describes this implementation; source design notes may use earlier API terminology.

components/ui.tsx