Radio Group
A set of mutually-exclusive radio options.
Overview
Pair each RadioGroupItem with an external Label via id/htmlFor — its own children slot is for a custom indicator, not label text.
- `RadioCard`: a choice card — the whole card is the radio, its children are the content (an
IconTile,FieldContentwithFieldTitleandFieldDescription) and a round indicator sits at the end. Selected cards take aprimarytint, hovered onesaccent. - Layout: lay several out with a
classNamegrid on the group.
Installation
CLI
Manual
- 1
Register the @fma-ds namespace in components.json (once)
- 2
Add the item
Files land in
components/fma-ds/radio-group.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- cn@^0.5.0react-aria-components@^1.22.1
- Registry
- @fma-ds/field