RadioGroup

Choose exactly one option. 20px circles; checked fills with Colors/action/primary and shows an 8px dot.

Figma: 10 / Components / RadioGroup

Usage

Source: src/components/ui/radio-group.tsx
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
import { FieldRow } from '@/components/ui/field'
<RadioGroup defaultValue='monthly'>
    <FieldRow control={<RadioGroupItem value='monthly' />}>Monthly</FieldRow>
    <FieldRow control={<RadioGroupItem value='once' />}>One time</FieldRow>
</RadioGroup>

When to use

When to reach for it, and when to use something else.

Use it for

Complete: Two to five mutually exclusive options that should all be visible.

Avoid

Not complete: Long lists; use a Select.
Not complete: A single yes or no; use a Checkbox or Switch.

RadioGroup

PropTypeDefaultDescription
valuestring–Controlled value.
defaultValuestring–Initial value when uncontrolled.
onValueChange(value: string) => void–Called when the choice changes.

RadioGroupItem

PropTypeDefaultDescription
valuestring–The value this option sets.
disabledbooleanfalseBlocks this option.

GoodUnited design system. The Figma file is the source of truth for every color, type size and component.

Made with Modulify