Skip to content
SevenUI
Sign in
On this page

Radio Group

Displays a radio group built on the Base UI Radio primitive, for choosing exactly one option from a short list.

Installation

Bash

Usage

Examples

Cards

Wrap each item in a styled Label — the has-data-checked: variant styles the selected card.

Disabled

Invalid

Select a billing period to continue.

API reference

RadioGroup

Extends the Base UI Radio Group primitive — all its props apply.

PropTypeDefault
value / defaultValuestring—
onValueChange(value: string) => void—
namestring — form submission—
disabledboolean — whole groupfalse

RadioGroupItem

Extends the Base UI Radio Root — the dot indicator is built in. Pair with Label for the click-target text.

PropTypeDefault
valuestring (required)—
disabledbooleanfalse

Was this page helpful?