UIIcons

Radio Group

A set of mutually exclusive options where only one can be selected at a time.

Radio Group

Installation

pnpm dlx stera-ui@latest add radio-group

Composition

Use the following composition to build a RadioGroup:

RadioGroup
├── RadioGroupItem
└── RadioGroupItem

Examples

With Descriptions

Standard spacing for most use cases.

More space between elements.

Minimal spacing for dense layouts.

Radio with Description

Choice Card

Wrap an entire Field in FieldLabel to render each option as a clickable card. The selected card highlights automatically via FieldLabel's built-in checked-state styling.

Radio Choice Card

In a Fieldset

Use FieldSet and FieldLegend to group radio items with an accessible legend.

Subscription Plan

Yearly and lifetime plans offer significant savings.

Radio Fieldset

Disabled

Radio Disabled

API Reference

Built on Base UI's Radio Group and Radio primitives — see the full API reference there.

RadioGroup

Built on Base UI's RadioGroup primitive.

PropTypeDefault
valuestring
defaultValuestring
onValueChange(value: string) => void
disabledbooleanfalse
namestring
orientation"horizontal" | "vertical""vertical"

RadioGroupItem

PropTypeDefault
valuestring
disabledbooleanfalse