When to use
Section titled “When to use”RadioCard is for places where options need explaining and the choice matters: a plan, a delivery method, a notification frequency.
When not to use
Section titled “When not to use”- For short options: for one-word options a Radio is enough and takes less room.
- For several choices: use CheckboxGroup.
- For an action: if the card leads to a page, use a linked Card.
Anatomy
Section titled “Anatomy”Notification frequency
import { Provider, RadioCard, RadioGroup } from '@bigbang/ui';
export default function Default() { return ( <Provider locale="en-GB"> <RadioGroup label="Notification frequency" defaultValue="daily" className="max-w-md"> <RadioCard value="instant" icon="bell" title="Instant" description="A notification for every event." /> <RadioCard value="daily" icon="mail" title="Daily digest" description="One email every morning." meta="Recommended" /> <RadioCard value="weekly" icon="sun" title="Weekly digest" description="On Monday mornings." /> </RadioGroup> </Provider> );}- Icon: Optional; decoration, not read.
- Title: The radio’s name.
- Description: Under the title; read as the description.
- Meta: Short text at the end, such as a duration or “Recommended”.
- Radio circle: Shows the selection.
Behaviour
Section titled “Behaviour”- Clicking anywhere on the card selects it.
- Selection works as in the group: arrows move between cards and select.
- The group error and disabled state reach every card.
Guidelines
Section titled “Guidelines”- Keep titles short and distinct; put detail in the description.
- Use the same structure on every card: if one has an icon, all do.
- Mark the recommended option with
metaand select it by default.
Content
Section titled “Content”| Turkish | English |
|---|---|
| Önerilen | Recommended |
Related components
Section titled “Related components”- RadioGroup: The group around the cards, and short options.
- Card: A linked or plain content card.