Components
Radio Card
One option of a Radio Group as a card, with the radio on the left or right.
A RadioCard is one option of a Radio Group
drawn as a card. The whole card is the label, so the title, description and
media all select it. Two or more in a group wash on hover and share the
group's sliding selected fill. For pick-many lists use
Checkbox Card.
indicator="left"(default) puts the radio before the text;"right"puts it at the end, for lists where the text is read first (bank accounts).align="center"(default) centres the control on the card;"top"puts it on the title's first line, for long descriptions.mediais a leading visual before the text, such as a bank mark.bleedpulls the card's inset out so the radio and text line up with the copy around it, and the hover and selected fill hang into the gutter. Leave--choice-pxof room either side and don't clip the parent.
Bleed
Statement frequency
Usage
import { RadioCard } from "@sophic/portal-ui/components/ui/radio-card";
import { RadioGroup } from "@sophic/portal-ui/components/ui/radio-group";
<RadioGroup value={accountId} onValueChange={setAccountId}>
{accounts.map((account) => (
<RadioCard
key={account.id}
value={account.id}
indicator="right"
media={<BankIcon bankCode={account.bankCode} />}
title={account.holder}
description={account.detail}
/>
))}
</RadioGroup>Props
Prop
Type
Default
Changelog
- 19 November 2026 — Added:
aside, a short value after the text. Full notes - 9 October 2026 — Added: indicator left or right, media slot, bleed. Full notes