Search

Search components and blocks

Sign in

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.

pnpm dlx shadcn@latest add @ditherui/radio-group

Install

$ pnpm dlx shadcn@latest add @ditherui/radio-group

Props

valuestring—
defaultValuestring—
onValueChange(value: string) => void—
disabledbooleanfalse

When 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.

Suggested components