Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Components
  2. Checkbox
  3. API and Development

Checkbox

API and Development

View Source
Submit Issue

Checkbox lets people select one or more options from a set. It provides a familiar form control with default and history variants for standard inputs and state transitions. Use it to keep selection patterns consistent across the product.

For card-based multi-select with descriptions, see Checkbox cards.

Checkbox Props

NameDefaultDescription
typeCheckboxType.DefaultBehavior variant. Options: Default or History.
labelPositionLabelPosition.LeftPosition of the label relative to the checkbox. Options: Left or Right.
idUnique identifier for the input.
nameName attribute for form submission.
valueValue included in form submission.
onCheckedChangeCallback fired when the checked state changes.
onClickCallback fired on click.
checkedControlled checked state. Accepts boolean or "indeterminate".
defaultCheckedInitial checked state for uncontrolled usage.
disabledDisables interaction.
tabIndexForwards to the underlying checkbox button (for example -1 when the control is presentation-only inside another widget).
childrenrequiredLabel content.

CheckboxVisual Props

Decorative checkbox paint for use inside another widget (for example menuitemcheckbox). Always aria-hidden; the parent owns selection semantics.

NameDefaultDescription
checkedfalseboolean | "indeterminate". "indeterminate" paints the partial-selection dash.
disabledfalseWhether the indicator appears disabled.
classNameOptional class merged onto the root.

Use interactive Checkbox for standalone form controls. Use CheckboxVisual only when nesting a real checkbox would create a nested-interactive violation.

Checkbox

Standard checkbox inputs with variants for different behaviors and label placement.

Default

Default checked (uncontrolled)

Controlled checked

Label on right

Indeterminate

Indeterminate list

History

History controlled

History (single)

Use when a checkbox represents a past or toggled state.

Disabled

All variants and states

Previous

Checkbox / Usage

Next

Checkbox / Accessibility

On this page

Checkbox Props
CheckboxVisual Props
Checkbox
Default
Default checked (uncontrolled)
Controlled checked
Label on right
Indeterminate
Indeterminate list
History
History controlled
History (single)
Disabled
All variants and states