Maple · Forms

Checkbox

Lets people select one or more options from a set. Supports an indeterminate state for parent rows whose children are partially selected.

View in Storybook →

Values

Unchecked, Checked, Indeterminate.

<Checkbox label="Remember me" defaultChecked />
<Checkbox label="Select all" indeterminate />

Disabled

Props

PropTypeDefaultDescription
labelReactNode—Label text.
indeterminatebooleanfalsePartially-selected parent.
checked / defaultCheckedboolean—Value.
disabledbooleanfalseDisabled state.

Usage

Do

  • Use for independent on/off choices that are submitted.
  • Use indeterminate for partially-selected parents.

Don't

  • Use for settings that apply instantly — use Toggle.