Skip to content

RadioCard

ReleasedShipped in 0.2.0StorybookFigma node 212:22Source
  • To pick one option from two to five where each needs a line of detail, such as the rate (“Whole apartment · non refundable”), when to pay, or which saved card to use at checkout.
  • Use the trailing text for the price of each option, such as “484.00 EUR” or “0.00 EUR now”; turn it off when options have no price, such as payment methods.
  • Use state disabled for an option that exists but can’t be picked right now, such as a sold-out rate, and say why in the description.
  • Stacked vertically in a radiogroup (the Group story, as in the Figma “Payment group”).
  • For more than five options, or options with no detail: use a Dropdown.
    Instead: Dropdown
  • To pick several options: use Checkboxes.
    Instead: Checkbox
  • To switch a view, such as a time range: use Buttongroup type segmented.
    Instead: ButtonGroup

Both Dropdown and RadioCard claim five options. RadioCard’s first “when to use” item says “To pick one option from two to five where each needs a line of detail, such as the rate (“Whole apartment · non refundable”), when to pay, or which saved card to use at checkout.” and Dropdown’s first says “To pick one value from a list of five or more, such as the property filter “All properties” on the back office calendar, or “Who” in the activity log filters.” (Dropdown).

From the release review, under “Findings outside the gates”, as written:

Dropdown and RadioCard both claim five options. Dropdown says “five or more”, RadioCard says “two to five”. The boundary at exactly five is claimed by both. Check 6 passes on the literal test, and each intent points to the other. Owner: the designer.

From the Figma documentation page (usage node 212:49), as written. These items aren’t carried into RadioCard.intent.json, which has no field for them.

  • Always preselect one card, usually the recommended or the current choice, such as the default card.
  • Stack cards vertically with 8px between them, all the same width, and make the whole card clickable.
  • Keep the title short and put conditions in the description, such as “free cancellation until 12 Sep”.
Property Value What it is for
state unselected (default)
state selected blue border and filled radio
state disabled greyed out, can’t be picked

From Versioning (VERSIONING.md at b9ffb76):

0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.

Two things about this release are worth knowing:

  • Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
  • Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.