Radio Group

Option group in simple or card appearance. Figma item types: Radio button, Checkbox, Icon, Avatar and Payment icon — with Badge, supporting text, sm / md size, disabled options and single or multiple selection.

import{ RadioGroup, PaymentIcon } from "@pepulux/ui"

Vertical (default) — with hints

Select plan

Selected: pro

Horizontal orientation

Side-by-side layout — best for 2–4 short labels.

Notification frequency

Sizes — sm / md

sm uses a 16px dot, md uses a 20px dot.

Small (sm)
Medium (md)

Disabled options

Individual options within the group can be disabled.

Notification channel

No label (fieldset without legend)

Omit the label prop when the context already makes the group purpose clear.

Card — Radio button with badge

Card — Icon simple, Avatar and Payment icon

Card — Checkbox (multiple selection)

Props

PropTypeDefaultDescription
options*RadioOption[]—{ value, label, hint?, disabled?, badge?, icon?, avatar?, paymentIcon?, meta? }
appearance"simple" | "card""simple"Inline radios or selectable cards (Figma Radio group item)
indicator"radio" | "checkbox""radio"Selection control — Figma Type Radio button / Checkbox
multiple / values / onValuesChangeboolean / string[] / (values) => void—Multiple selection (checkbox indicator)
valuestring—Controlled selected value
onChange(value: string) => void—Called when selection changes
namestring"radio"HTML name attribute for the radio inputs
labelstring—Group legend text displayed above the options
orientation"vertical" | "horizontal""vertical"Layout direction
size"sm" | "md""md"Radio dot dimension — 16px (sm) or 20px (md)
classNamestring—Additional CSS classes on the fieldset wrapper
Base component → Radio groupswww.pepulux.com

Notes and documentation

Space for notes, documentation, and best practices for using these components.

Choose one

Radio groups present mutually exclusive options. Use cards when each option needs an explanation, an icon, an avatar or a payment method. A default selection should be the safest option.

The checkbox indicator turns the same card layout into a multiple-choice list.

Do

  • Keep options between two and seven
  • Order options logically

Don't

  • Use radios for yes / no — use a toggle or checkbox