Skip to content
Playground

Radio Group

Choose one value from a mutually exclusive set.

Choose one value from a mutually exclusive set.

Backed by Base UI Radio Group for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

TSX
import { Label, RadioGroup } from "@zentara-co/zenos-ui";

State follows value, defaultValue, and onValueChange. Arrow keys move selection within the group, while disabled items remain unavailable.

Use size="sm", size="md", or size="lg" for 32px, 40px, or 48px hit targets. The visible radio controls are 16px, 20px, and 24px, matching the Checkbox size scale.

Use className on the group, labels, and items to create a custom treatment while Base UI continues to own selection and keyboard behavior. RadioGroup.Item exposes data-checked for state styling, and stable slots such as radio-box let parent-scoped selectors customize the visible control without replacing it.

Use controlled state when another part of the interface needs the selected value immediately.

Selected: weekly

RadioGroup uses a vertical grid by default. Use className for a horizontal arrangement when the labels remain readable in the available width. Base UI continues to manage radio-group keyboard movement.

Disable the complete group from Root or individual unavailable choices from Item. Pass custom content to Item when the default indicator does not fit the interface.

RadioGroup.Root
RadioGroup.Item
RadioGroup.Indicator

API

PropTypeDefaultDescription
value string — Controlled selected value.
defaultValue string — Initial uncontrolled value.
onValueChange (value: string, eventDetails) => void — Runs when selection changes.
name string — Form field name shared by the group items.
disabled / required boolean false Group form semantics.
Item.disabled boolean false Prevents selection of an individual option.
Item.size sm | md | lg md 32px, 40px, or 48px hit target with a proportionally sized circle.
Item.children ReactNode — Replaces the default RadioGroup.Indicator.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Give every group an accessible name with a visible group label, aria-label, or aria-labelledby. Associate each option with Label by wrapping it or matching htmlFor and id. Arrow keys move focus and selection within the group, while Tab enters and leaves it. Disabled items are skipped. Required and invalid state must be paired with visible guidance when users need help correcting a selection.