An always-visible list of options to select one or several from.
booleanfalse |
Whether a single-choice list lets the user clear the selection by choosing the selected option again. |
disabled | boolean | false | Whether the whole list is disabled. |
multiple | boolean | false | Whether more than one item can be selected. The value is then an array. Shift selects a range, and Ctrl or ⌘ + A selects every option. |
name | string | – | Submits the selection with a form: one hidden input per selected value. |
onHighlightChange | ((value: string) => void) | – | Called with the value of the option the keyboard or pointer moves to, or |
onValueChange | ((value: ListBoxValue | null) => void) | – | Called with the new value when the selection changes: a string (or |
value | ListBoxValue|null | – | The selected value: a string, or an array of strings when |
Accepts render, plus every native <div> attribute.
Accepts render, plus every native <div> attribute.
Accepts render, plus every native <div> attribute.
Accepts render, plus every native <div> attribute.