RadioList

Beta notice: This page is being built.Edit on GitHub(opens in new tab)

Selects one of a small number of labeled values.

longlink docs component "RadioList"

Example

PlanRequired
Solo
Team

Properties

RadioList - Properties
labelstring
Label text for the radio group (always rendered for accessibility).
descriptionstring
Description text displayed below the label.
namestring
Includes the themed control's value under this form submission name.
requiredboolean
Requires a value before native form submission.
disabledboolean
Prevents interaction and excludes the field from submission.
childrenReactNode
RadioListItem elements.
valuestring
The currently selected value.
defaultValuestring
Initial value.
onChange(value: string) => void
Callback fired when the selected value changes.
orientation"horizontal" | "vertical"
Layout direction of the radio items.
RadioListItem - Properties
labelstring
Visible label identifying this choice.
valuestring
Value passed to the surrounding RadioList when selected.
descriptionstring
Optional helper text explaining the choice.
isDisabledboolean