Skip to content

    Browse components

    Radio Group

    Native radio group restyled with a springy dot and ripple, plus a card variant whose selection outline slides between options. Arrow keys just work.

    Open
    Customize
    default
    card
    vertical
    horizontal

    Installation

    npx shadcn@latest add @glint-ui/radio-group

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/radio-group.json

    Usage

    import { RadioGroup } from "@/components/ui/radio-group";
    
    <RadioGroup variant="card" defaultValue="pro" aria-label="Plan">
      <RadioGroupItem value="hobby" label="Hobby" description="Personal projects" />
      <RadioGroupItem value="pro" label="Pro" description="$20 / month" />
    </RadioGroup>

    Props

    PropTypeDefaultDescription
    variant"default" | "card""default"Plain radios or selectable cards.
    orientation"vertical" | "horizontal""vertical"Layout direction.
    disabledbooleanfalseDisable every option.
    defaultValuestring—Initially selected value (uncontrolled).
    valueReactNode—Controlled value (with onValueChange).
    nameReactNode—Form field name. Auto-generated if omitted.
    childrenReactNode—RadioGroupItem elements (value, label, description, icon, disabled).
    classNamestring—Extra classes for the root element.