SegmentedControl
Choose one of a few visible options in a joined track. role=radiogroup, sm or md, icons optional.
Selectable cards for a plan or option picker. Single or multi select, with title, description, and a price or meta slot.
Selectable cards for a plan or a set of options. Title, description, and a price slot. Single or multi select, with checked and disabled tiles.
Single select with Pro checked and Scale disabled. Pick a plan; arrow keys move through the tiles.
Single select is a radiogroup. Multi select is a checkbox group. meta is the price slot. A disabled item stays visible and cannot be checked. Focus shows the shared canvas-plus-ring, the same as Button and Input.
import { TileGroup } from "agentic-ds-kit";From contracts/tilegroup.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 |
|---|---|---|---|---|
| ariaLabel | string | Yes | — | Names the group. |
| items | array | Yes | — | meta is the price or other short slot at the end of the title row. |
| selection | single | multiple | No | single | — |
| value | string | string[] | No | — | controlled. string when selection is single, string[] when multiple. |
| defaultValue | string | string[] | No | — | uncontrolled |
| onChange | function | No | — | (value: string) => void for single, (value: string[]) => void for multiple |
| disabled | boolean | No | false | Locks the whole group. A disabled item stays visible and cannot be checked. |
Choose one of a few visible options in a joined track. role=radiogroup, sm or md, icons optional.
Choose exactly one option from a small visible set.
Immediate on/off setting.
Framed tile with optional header, body, and footer actions.