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 |
|---|
label Label text for accessibility.string |
description Helper text displayed below the label.string |
name Includes the themed control's value under this form submission name.string |
required Requires a value before native form submission.boolean |
disabled Prevents interaction and excludes the field from submission.boolean |
options Selectable options, dividers, or titled sections.SelectorOptionType[] |
defaultValue Initial value.string |
hasSearch Shows a search field for filtering options.boolean |
placeholder Placeholder text shown when no value is selected.string |
value Currently selected value.string | null |
onChange Callback fired when the selection changes.(value: string | null) => void |