Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Components
  2. Checkbox Cards
  3. API and Development

Checkbox cards

API and Development

View Source
Submit Issue

CheckboxCardGroup drives Radix CheckboxCards with an options array. Each entry renders a CheckboxCard with value, label, optional description, and layout flags. The group supports controlled value / onValueChange, indicatorPosition, indicatorHidden, horizontal (lays cards out in a single row), disabled, and readOnly (shows lock affordance and blocks changes).

CheckboxCardGroup

Name

Type

Default

Description

label

string

—

The label to display on the checkbox card

value

string

—

The value of the checkbox card

description

ReactNode

—

Optional description content to display below the label

disabled

boolean

false

Whether the checkbox card is disabled

indicatorHidden

boolean

false

Whether to hide the checkbox indicator

indicatorPosition

"left" | "right"

left

Position of the indicator relative to the content

readOnly

boolean

false

Whether the checkbox card is read only

Storybook

Interactive examples and edge cases for this component are in Storybook.

Default
With Description
Disabled
With Right Indicator
Without Indicator
Horizontal
Horizontal With Description
Read Only
Read Only With Right Indicator
Variants
Indicator Variants
Checkbox Tests

Option fields (CheckboxCardProps)

Name

Type

Default

Description

value

string

required

Stable id.

label

string

required

Primary line.

description

ReactNode

—

Secondary line.

indicatorPosition

"left" | "right"

—

Overrides group default when supported.

indicatorHidden

boolean

—

Per-card indicator visibility.

readOnly

boolean

false

Lock icon when group is read-only.

Example

CheckboxCard

A card-based pattern for more descriptive or visual options.

Basic Card

Use for simple selections with an optional description.

With Description

Provide added context or benefits.

Disabled Cards

Disable options based on conditions.

Right Indicators

Indicators can also appear on the right-side of the checkbox card for elements aligned to the right-hand side of the page.

Hidden Indicators

Hide the checkbox indicator when you do not want a visible state.

CheckboxCardGroup

Manage multiple cards with controlled or uncontrolled selection.

Multiple Selection

Allow selecting more than one option.

Controlled Selection

Control selection state externally for complex flows.

Disabled Group

Disable all cards when selection is unavailable.

Right-Aligned Indicators

Place indicators on the right for alternate layouts.

Previous

Checkbox Cards / Usage

Next

Checkbox Cards / Accessibility

On this page

CheckboxCardGroup
Storybook
Option fields (CheckboxCardProps)
Example
CheckboxCard
Basic Card
With Description
Disabled Cards
Right Indicators
Hidden Indicators
CheckboxCardGroup
Multiple Selection
Controlled Selection
Disabled Group
Right-Aligned Indicators