Skip to content
nexubDesign System
v2.4.0

Components · Form Controls

Checkbox Card

BetaSince v1.6.0

A checkbox drawn as a whole card: title, description and optional icon. Pick any number.

import { CheckboxCard } from '@nexub/react';

Examples

Features

Lay checkbox cards out with any grid; there is no group component.

Disabled

Props

Props
PropTypeDefaultDescription
titlerequiredReactNode—The card’s accessible name.
descriptionReactNode—Secondary text, exposed as the accessible description.
iconReactNode—Leading icon. Turns primary when checked.
checked / defaultCheckedboolean—Controlled or initial state. No indeterminate state.
onCheckedChange(checked: boolean) => void—Called with a plain boolean.
childrenReactNode—Extra content under the description. Keep it non-interactive.
disabledbooleanfalseDisables the card.

Accessibility

ARIA roles

checkbox

Keyboard

  • Tab

    Moves focus to the card.

  • Space

    Toggles the card.

Screen reader

  • The title is the accessible name and the description is the accessible description.

  • Wrap related cards in a `fieldset` with a `legend` so the set has a name.

On iOS & Android