Skip to content
Binary UIKit reference Stable

Select

Single select with native label, description, and error associations that optionally switches to a searchable combobox.

Use Select for one value from a list when showing every option at once would take too much space. Give it a visible label or an aria-label.

Interactive example

Loading interactive example

API

Inherited prop contracts

  • Pick<HTMLButtonAttributes, "id" | "aria-describedby" | "aria-invalid" | "aria-label" | "aria-labelledby"> Only the listed props from this native base are accepted.
MemberTypeKindRequiredDefault
disabledbooleanpropNofalse
emptyTextstringpropNo'No results'
errorstringpropNoundefined
hintstringpropNoundefined
labelstringpropNoundefined
onValueChange(value: T) => voidcallbackNoundefined
optionLabel(value: T) => stringcallbackNoundefined
optionsreadonly T[] | readonly SelectOption<T>[]propYes
placeholderstringpropNoundefined
searchablebooleanpropNofalse
valueTbindingNoundefined as T | undefined

Examples

Source

Loading source