Select
The Select element is a dropdown that lets users choose one value from a predefined list of options.
Properties
| Property | Type | Description |
|---|---|---|
label | string | Field label |
clearable | boolean | Show a clear/reset button to deselect the current value |
options | array | The list of choices — see below |
Plus shared layout properties.
Options
Each entry in the options array has three fields:
| Field | Description |
|---|---|
label | The display text shown to the user |
key | A unique identifier for this option within the list |
value | The value submitted when this option is selected — can be a string or a number |
TIP
label and value can differ. For example, you might display "United Kingdom" to the user while submitting "GB" as the value.
See also: Elements overview
