Example code
Example code
Usage
Reference
Parameters
When
true, prevents the user from interacting with SelectThe controlled value of the Select.
The name of the field. Submitted with its owning form as part of a name/value pair.
When
true, indicates that the user must set the value before the owning form can be submitted.The controlled open state of the Select.
The open state of the select when it is initially rendered. Use when you do not need to control its open state.
Use this to compare objects by a particular field, or pass your own comparison function for complete control over how objects are compared.Complex values (
((a: AcceptableValue, b: AcceptableValue) => boolean)) must be assigned via the by JS property instead.The reading direction of the combobox when applicable. <br> If omitted, inherits globally from
ConfigProvider or assumes LTR (left-to-right) reading mode.Whether multiple options can be selected or not.
Native html input
autocomplete attribute.options
prop · { label: string; value: string | number | null; icon?: Component; disabled?: boolean; }[]
default:"[]"
The value of the select when initially rendered.Complex values (
(string | number | null)[]) must be assigned via the defaultValue JS property instead.Events
The element dispatches nativeCustomEvents; the payload is in event.detail.
event.detail: [value: string | number | null]event.detail: [value: boolean]