Checkbox

Checkboxes are used to toggle binary options or properties. Although switches are typically preferred for on/off states, checkboxes can be more appropriate when multiple selections or partial states are involved.

Examples

Default

Checked

To render a checkbox as selected by default, add the checked attribute to the <input> element.

Disabled

To render a checkbox as non-interactive, add the disabled attribute to the <input> element.

Indeterminate

To render a checkbox in an indeterminate (partially selected) state, define its related child checkboxes using the aria-controls attribute. The value of aria-controls should be a space-separated list of the child checkbox IDs.

Customization

Supported Classes

Supported Tokens

Last modified: Oct 19, 2025: refactor(docs): Reorganize the folder structure of component examples (8271c2e)