Avatar
/

foundations

IntroductionColorGridIconsPlayground

components

BadgeBreadcrumbsButtonCalendarCapacityComboboxDescriptionEntityFieldsetFile TreeFooterInputKeyboard InputLoading DotsMenuModalNotePillRadioSelectShow MoreSpinnerStackStatus DotSwitchTableTabsTextTextareaToggleTooltip
PillSelect

Radio

Provides single user input from a selection of options.

RadioGroup Props

Name
Type
Description
label
string
aria-labelledby for the RadioGroup.
name
string (optional)
Explicitly set the name of the input.
value
string | null
Currently selected value.
onChange
(value: string | null) => void
Called when an option is selected.
required
boolean
Makes the input required.
disabled
boolean
Disables all options.

RadioGroup Props

Name
Type
Description
value
string
Value of the item.
label
string
Whether the children components should be a label or span
disabled
boolean
Disables the item.

Default

Code Editor

Disabled

Code Editor

Required

Code Editor

Headless

TODO