Search
Search components and blocks
Radio Group
The shadcn Radio Group with a filled dot that shares a layout id across items, so it glides from one option to the next instead of popping in place.
Install
$ pnpm dlx shadcn@latest add @ditherui/radio-group
Props
PropTypeDefault
valuestring—defaultValuestring—onValueChange(value: string) => void—disabledbooleanfalseWhen to use the radio group
Use it to pick one option from a few. It is the shadcn Radio Group with a filled dot that glides between options.
Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.