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