Skip to content
PreviewChoose a team role. The description stays readable while the check moves to the chosen answer.
Role

ChoiceList

labelrequired
ReactNode
The question, the fieldset's legend ("Role").
itemsrequired
readonly ChoiceItem<V>[]
The answers, in order.
value
V
Controlled value. One answer is always chosen.
defaultValue
V
Initial value when uncontrolled, and what a form's reset puts back. Default the first answer that is not disabled.
onValueChange
(value: V, details: { event: Event }) => void
Called with the value chosen, by a press or by an arrow key.
name
string
The radios' name, which a form sends with the value; one of its own when left out.
form
string
The form the radios belong to, where they stand outside it.
disabled
boolean
Default: false
Disables every answer and dims the question.
rootStyle
ChoiceListStyle
Typed StyleX override on the fieldset: layout and the --choice-* knobs.

Rest props go to <fieldset> props.

State machine

PreviewThe member role is selected.
Role