Hextech UI

Radio Group

Live example

Radio Group

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/radio.json

API reference

These are the main Radio Group options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
value / defaultValuestring (group)—
valuestring (radio)—
onValueChange(value, details) => void—
Radio.childrenmanaged indicator/track; use an external labelnot accepted

Group selection

Set value and onValueChange on RadioGroup for controlled selection, or defaultValue for local state. Each Radio needs a distinct value and a visible label. Give the group an accessible name; arrow keys move between options.