Radio group

Radio group is a neobrutalist React component from Cruise UI. Native radios in a fieldset: pick exactly one of a few visible options. Install it with npx shadcn@latest add @cruiseui/radio-group.

Install

Terminal

npx shadcn@latest add @cruiseui/radio-group

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners
Delivery

When to use it

When to use

Exactly one of 2–5 options that people should see side by side.

When not to

More than 5 options (use a Select). Several at once (use Checkboxes).

Props

CruiseRadioGroup

PropTypeDefaultDescription
legendReactNode——
optionsCruiseRadioOption<V>[]——
value?V——
defaultValue?V——
onChange?((value: V) => void)——
name?string——
className?string——

Accessibility

  • A <fieldset> with a <legend>; arrow keys move between options natively.
  • Radios are the one round control (besides avatars).