Radio Group

Single-select choice control with a gliding layoutId indicator dot and spring press feedback.

Radio Group

radio.tsx

Gliding indicator dot with spring press feedback.

With Description

radio.tsx

Optional supporting text under each option label, exposed to assistive technology as the description.

API Reference

RadioGroup

value?
string
—
defaultValue?
string
onValueChange?
((value: string) => void)
—
className?
string
—
orientation?
"horizontal" | "vertical"
vertical

RadioGroupItem

value
string
—
label?
string
—
description?
string

Supporting text under the label, announced as the description rather than the name.

—
disabled?
boolean
—
className?
string
—
id?
string
—

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/radio

Updated