Selector

Beta notice: This page is being built.Edit on GitHub(opens in new tab)

Selects one value without custom option rendering or popup geometry.

longlink docs component "Selector"

Example

Properties

Selector - Properties
labelstring
Label text for accessibility.
descriptionstring
Helper text displayed below the label.
namestring
Includes the themed control's value under this form submission name.
requiredboolean
Requires a value before native form submission.
disabledboolean
Prevents interaction and excludes the field from submission.
optionsSelectorOptionType[]
Selectable options, dividers, or titled sections.
defaultValuestring
Initial value.
hasSearchboolean
Shows a search field for filtering options.
placeholderstring
Placeholder text shown when no value is selected.
valuestring | null
Currently selected value.
onChange(value: string | null) => void
Callback fired when the selection changes.