2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Form Controls

Select

Updated: June 15, 2025
View on GitHub
The Select component offers a dropdown menu for selecting from a list of options. It's built on top of the DropdownWrapper and Input components, providing a consistent user experience with other form controls. Enable search functionality to filter options in large lists. Customize the message shown when no options match the search query. Set multiple to allow selecting more than one option. The value and onSelect callbacks receive arrays when multiple mode is enabled.
Prop
Type
Default
optionsrequired
The choices, as value and label pairs.
SelectOptionType[]
value
The selection. An array when multiple is set.
stringstring[]
emptyState
Shown when a search matches nothing.
ReactNodeNo results
onSelect
Called with the new selection.
(value: string | string[]) => void
placement
Which side the list opens on.
toprightbottomlefttop-starttop-endright-startright-endbottom-startbottom-endleft-startleft-end
searchable
Add a filter field above the options.
booleanfalse
className
string
style
React.CSSProperties
fillWidth
Match the parent's width.
booleantrue
multiple
Allow more than one choice.
booleanfalse
…and every InputProps propinherited
…and every DropdownWrapperProps propinherited
id
string
label
string
minHeight
SpacingToken
minWidth
SpacingToken
maxWidth
SpacingToken
Prop
Type
Default
label
ReactNode
value
string
onClick
(value: string) => void
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club