Forms

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.

PropValues and behaviorDefault
collectionListCollectionrequired
value / defaultValuestring[][]
onValueChange(details) => void—
multiplebooleanfalse
closeOnSelectbooleantrue in single-select mode
namestring—