RadioGroup
A labeled set of options where only one can be picked.
- Use it for
- One choice from a short list where every option should stay visible.
- Not for
- More than about seven options. Try Select or ToggleGroup.
RadioGroup preview
Loading example…
Installation
npm install @stackunseen/uiimport { RadioGroup } from '@stackunseen/ui';@stackunseen/ui/styles.cssUsage and props
Supply stable option values and use Field labelAs="span" for the group label. If there are no options, say why.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
options · value? · onValueChange? · name? · orientation? · disabled? · emptyMessage?All props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- options · value? · onValueChange? · name? · orientation? · disabled? · emptyMessage?
- Keeps honest
- Supply stable option values and use Field labelAs="span" for the group label. If there are no options, say why.
- MCP
read_component "RadioGroup"on the docs endpoint
Keyboard and customization
Keyboard
Tab enters the selected radio; arrow keys move and select within the native group. Space selects the focused option.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio