Skip to main content

SelectionCard

A card component for making selections, supporting radio and checkbox modes.

Import​

import { SelectionCard } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12} style={{maxWidth: 350}}>
  <SelectionCard title="Option A" description="First option" type="radio" selected />
  <SelectionCard title="Option B" description="Second option" type="radio" />
  <SelectionCard title="Option C" description="Third option" type="radio" />
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

  • title - Card title text
  • description - Supporting description
  • type - 'radio' | 'checkbox' - Selection mode
  • selected - Whether the card is selected

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included

Changelog​

See GitHub Releases for version history.