TileGroup
Selectable cards for a plan or option picker.
Choose exactly one option from a small visible set.
Single-select choices for settings and forms. Each in lg, md, and sm. Not a Radio cousin.
Two plans at lg with Studio Pro picked. Variants shows sizes, error, disabled and card layouts.
Use radios for a single choice in a short list. Group related options and keep one selected value per group. Do not invent Radio.
Choose exactly one option from a small visible set. Custom circle, not a native radio. One piece.
import { RadioGroup } from "agentic-ds-kit";From contracts/radiogroup.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| describedBy | string | No | — | Extra id(s) for aria-describedby on the group, after the hint or error. |
| name | string | Yes | — | — |
| legend | string | Yes | — | Fieldset legend. |
| size | sm | md | lg | No | md | — |
| orientation | vertical | horizontal | No | vertical | — |
| options | array | Yes | — | — |
| defaultValue | string | No | — | — |
| value | string | No | — | controlled |
| onChange | function | No | — | (value: string) => void |
| disabled | boolean | No | false | Locks the whole group. |
| error | string | No | — | Group error message. Tints the radios. |
| hint | string | No | — | — |
| hideLegend | boolean | No | false | Keeps the legend for assistive tech, hides it visually. Use when Drawer already shows the title. |
| layout | list | card | No | list | card is bordered rows with the radio on the right, an optional leading avatar or icon, and a kit focus ring on the whole card. Compose Badge via option.badge. Need a price? Use TileGroup. |