Select
Select one or more options from a list with keyboard navigation and typeahead.
Basic usage
Create the collection with createListCollection and unique values. Selection is always an array of strings, including in single-select mode.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
collection | ListCollection | required |
value / defaultValue | string[] | [] |
onValueChange | (details) => void | — |
multiple | boolean | false |
closeOnSelect | boolean | true in single-select mode |
name | string | — |