Skip to content

Select

A dropdown picker of one or many options; searchable = a filtering combobox, source = a host list.

Group: Inputs · Kind: native · in the lite catalog

example
disabled · true

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-select on Web
exponential-ui-select on iOS
exponential-ui-select on Android
exponential-ui-select on Desktop
Prop Type Required Bindable Description
label string – – The field label.
name string yes – The field’s key in the submitted data.
options [option] – yes Inline choices, or a path the host refills on search; omit with source.
source string – – A host list id (e.g. exp:statuses) that supplies the options.
placeholder string – – Shown while nothing is chosen.
value string – yes The chosen value (comma-joined when multiple); bind it.
multiple boolean – – Allows several values. Default false.
searchable boolean – – Adds a filter field; typing fires search. Default false.
emptyText string – – Shown when the search matches nothing. Default "$string.noResults".
disabled boolean – – Shows it inert. Default false.
checks [check] – – Validation rules.
validateOn change | blur | submit – – When the checks run. Default "change".
  • on.change: runs an action
  • on.search: runs an action

None.

none

The basic catalog’s ChoicePicker (filterable, multipleSelection) renders as Select.

A native component: every renderer paints it directly.

Role: combobox

combobox + listbox / option

Keys Action
Enter Space ArrowDown open on the selected option
ArrowDown ArrowUp move the active option; Home/End: first/last
Enter choose (multiple: toggle and stay open)
Escape close without change
Typing jump to the next matching option; with searchable, typing filters, focus stays in the search field and arrows move the active option (aria-activedescendant)

Recipe parts: Select/root Select/label Select/trigger Select/placeholder Select/content Select/search Select/item Select/check Select/empty

Keyed by: multiple searchable disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · Radio