Skip to content
Browse docs and components

Radio group

radio-group

A choice of exactly one option, where the group owns the value and the arrow keys travel in the direction the options are laid out. Horizontal and vertical are the same component with an orientation, and a disabled option reads as present but unavailable.

Responsive

Install

$npxshadcnadd@forme/radio-group

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Radio

One option.

PropTypeDefaultDescription
labelReact.ReactNode—The visible label, rendered beside the control and wired to it.

Also takes every prop of Base UI Radio.Root.

The other parts

  • RadioGroupTakes ComponentProps<typeof RadioGroupPrimitive>