Skip to content
On this page

Select

Basic

You can use ASelect component to render basic select.

value: undefined
value: undefined

Placeholder

You can use placeholder attribute to add placeholder to the select.

Label

You can use label prop to add label to the select.

Hint

You can use hint prop to add hint to the select.

We will deliver it shortly

Icons

You can use append-inner-icon prop to change icon of the select component.

To prepend the icon use prepend-inner-icon prop.

Moreover, you can also use append-icon & prepend-icon prop to add icon outside of the select component.

Slots

You can use default slot to render the ASelect options.

States

You can use readonly prop to make select read only.

Use disabled prop to make select disabled.

value: banana
value: banana

API

Select

disabled : boolean

Set component in disabled state

readonly : boolean

Set component in readonly mode

loading : boolean

Set loading state

options : AListPropItems
emitObject : boolean

Emit whole object when item is select instead of item.value

appendIcon : string

Append icon

modelValue : any
inputWrapperClasses : any

Input wrapper classes

inputClasses : any

Input classes

inputWrapperAttrs : HTMLAttributes

Input wrapper attributes

hint : string

Add hint below the form component

error : string

Error text to render. This will replace hint text if provided.

label : ConfigurableValue

Label of the form component

prependIcon : string

Prepend icon

prependInnerIcon : string

Prepend icon inside input

appendInnerIcon : string

Append icon inside input

optionsWrapperClasses : any
listClasses : any
default : { handleListItemClick: (item: string | number | AListItemProps) => void; }
options-before : any
options-after : any
options-item-prepend : { item: AListItemProps; }
options-item-content : { item: AListItemProps; }
options-item-append : { item: AListItemProps; }
title : any

Render custom content for title

subtitle : any

Render custom content for subtitle

header-right : any

Render custom content on right side of title & subtitle. Content inside this slot will be vertically centered to title & subtitle.

label : any
prepend : any
prepend-inner : any
append-inner : any
append : any
bottom : any
update:modelValue => [value: any]
input => [value: any]
change => [value: any]

Released under the MIT License.