RadioGroup
Choose exactly one option from a small visible set.
Pick a value or a range along a track.
Pick a value or range along a track. Range is a two-value array, not RangeSlider. Vertical is orientation, not a cousin.
Single value with a live number. Drag the thumb or use arrow keys.
33
Controlled value with min, max, and step. Each thumb is role=slider with keyboard support. Inside Field, the label names every thumb; on its own, pass aria-label.
Pick a value or range along a track. One piece. Range is a two-value array, not a RangeSlider cousin.
import { Slider } from "agentic-ds-kit";From contracts/slider.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 |
|---|---|---|---|---|
| labelledBy | string | No | — | Id(s) of the visible label for each thumb's aria-labelledby. Field passes its label id, so a Slider inside Field is named by the Field label. |
| describedBy | string | No | — | Id(s) for each thumb's aria-describedby. Field passes its hint or error id. |
| error | boolean | No | — | Marks each thumb aria-invalid. Field sets it when it has an error. |
| value | number | number[] | Yes | — | Current value. Single number for one thumb. Two numbers for a range. |
| min | number | No | 0 | — |
| max | number | No | 100 | — |
| step | number | No | 1 | — |
| orientation | horizontal | vertical | No | horizontal | Vertical is orientation, not a VerticalSlider cousin. |
| disabled | boolean | No | false | — |
| onValueChange | function | No | — | Called with the next value or value array. |