> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkbox

> Checkboxes allow users to select one or multiple options from a list. They are often used in forms, settings, or interfaces requiring multiple selections, and can stand alone or sit inside Menus, Tree views, Data tables, or Cards.

## Checkbox

<Badge color="blue">v1.0.0</Badge> | [View in Storybook](https://master--695bb4b1b8041ae09768950a.chromatic.com/?path=/docs/primitives-checkbox--docs)

### When to use

* Users need to select multiple options independently (e.g., hiding or showing columns in a Data Table display or selecting items from a list).
* Users need to enable/disable a setting.
* A selection doesn’t require immediate action (e.g., form submission required to apply changes).
* User needs to confirm or agree to something (e.g., a delete confirmation).

### When to use something else

* The user should only select one option. Use [Radio](/aura-design-system/primitives/radio) buttons instead.
* The options are part of a form and don’t need to be presented all at once—consider [Select](/aura-design-system/primitives/select).
* The action is immediate and toggles a setting on/off. Use [Switch](/aura-design-system/primitives/switch) instead. Checkboxes indicate selection rather than an instant toggle, so they can feel ambiguous for immediate on/off settings.

### Dos and don'ts

* Do provide a label to help the user understand what they are selecting.
* Don't preselect Checkboxes for the user as this can be overlooked.
* Do use an indeterminate state when some of the children items are selected.
* Don't use only one checkbox unless it's being used to verify or agree to something.
* Do automatically select children when a parent item is selected.
* Do always indent children items to show the parent-child relationship.

### Behavior

* Space toggles the focused checkbox; click/tap toggles the hit target.
* Indeterminate state reflects partial selection in a group and is set by the app, not by direct user choice.
* Parent–child groups: selecting a parent updates children per your rules (often all or none).

### Checkbox vs Checkbox + card

* Use a plain checkbox when the options are straightforward and self-explanatory — enabling a feature, agreeing to terms, selecting items from a list.
* Use the card container when:
  * Each option benefits from a description to make the choice clear.
  * The options represent distinct configurations or feature sets the user needs to evaluate.
  * You want to visually separate and give equal weight to each choice.

Keep in mind:

* The card works well here when users are making considered selections — like choosing data with context about what each one does — rather than quickly ticking off a list.
* Don't use the card variant for long lists of options. Cards imply each item deserves attention; if there are more than \~4-5 options, the layout becomes unwieldy and plain checkboxes with good labels will serve better.

### Often used with

* [Label](/aura-design-system/primitives/label) per control or group legend; [Helper text](/aura-design-system/primitives/helper-text) for the group; [Card](/aura-design-system/primitives/card) variant when options need descriptions.
