Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

Components

Radio Group

Single-select choices with long-label rows. The highlight follows the pointer and the keyboard, and all options stay visible without opening a popup.

Preview
SMS advisories only; convergence of mobile-first notificationSMS advisories only; convergence of mobile-first notification
Email and SMS; full ledger and receiptsEmail and SMS; full ledger and receipts
In-person at the hall only; no digital channelIn-person at the hall only; no digital channel
<RadioGroup value={value} onValueChange={setValue}>
  <RadioItem index={0} value="sms" label="SMS" />
  <RadioItem index={1} value="email" label="Email" />
</RadioGroup>

Usage

Mutually exclusive choices with labels that need more than a few words.

Do and don't

  • Do. Keep every option visible and use value plus onValueChange.
  • Don't. Use it for independent checks or more than seven options.

Composition

Each option is a RadioItem with a required label and index. Use FieldSet and FieldLegend when the group needs a visible question.

Props

  • value + onValueChange(value: string); recommended, controlled by string value.
  • selectedIndex; position-based control, paired with RadioItem index=.
  • Per-item selected + onSelect; uncontrolled per-item selection.
  • size="default" | "compact"; 36px or 28px rows. Omit to follow the surrounding size context.

Related

Shares row sizing with Checkbox and field wiring with Text Field. Highlight and focus colors come from Colors.

← PreviousProgressNext →Scroll Area

Install

npx shadcn@latest add @pilipinas/radio-group

For your coding agent