UI
RadioCardGroup
Card-based radio buttons with icon, badge, and description support.
Quick Preview
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/RadioCardGroup.tsx
Usage
import RadioCardGroup from '@/components/ui/RadioCardGroup'<RadioCardGroupoptions={[{ value: 'monthly', label: 'Monthly', description: 'Billed every month' },{ value: 'annual', label: 'Annual', description: 'Save 20%', badge: 'Best value' },]}defaultValue="annual"onChange={(value) => setBillingCycle(value)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options* | RadioCardOption[] | - | Array of card options |
columns | 1 | 2 | 3 | 2 | Grid columns |
onChange | (value: string) => void | - | Selection callback |