Skip to content

RadioGroup

stable

Single-selection radio button group

Data EntryInteractive/Storybook ↗
import { RadioGroup } from "@danagraph/design-system"
Loading demo…

Props

label
Type stringDefault —

Group legend text

itemsrequired
Type RadioItem[]Default —

Array of { value, label, disabled? } items

valuerequired
Type stringDefault —

Currently selected value

onChangerequired
Type (value: string) => voidDefault —

Called with newly selected value

orientation
Type "vertical" | "horizontal"Default "vertical"

Layout direction

name
Type stringDefault —

HTML radio group name (auto-generated if omitted)

semantictypeborder
MobileTouch Target

Vertical layout is the default and works on mobile. For horizontal radio groups, switch to vertical below 480px.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?