GitHubnpm

Accent theme

Base radius

GitHubnpm

Accent theme

Base radius

Colour scheme

Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

Radio Group

A real <fieldset> and <legend> grouping real <input type="radio"> elements that share one name. Arrow-key roving between options and "exactly one selected" are native radio button behaviour.

Plan

Playground

Toggle every adjustable prop and watch the component — and the code — update live.

Notify me about
Unstyled

Same component — Kernel look stripped. See Platforms.

disabled
Usage
<RadioGroup label="Notify me about" defaultValue="all">
  <RadioGroupItem value="all">All new messages</RadioGroupItem>
  <RadioGroupItem value="mentions">Mentions only</RadioGroupItem>
  <RadioGroupItem value="none">Nothing</RadioGroupItem>
</RadioGroup>

Props

Props for Radio Group.
ComponentPropType
RadioGrouplabelReactNode (required)
RadioGroupvalue / defaultValuestring
RadioGrouponValueChange(value: string) => void
RadioGroupItemvaluestring (required)