Select

Select gives the user the ability to choose from predefined answer options.

Read more about this component in the Aksel documentation.

Properties

PropertyDescriptionDefault
Control
Properties
label
required

Label for select.

string Snippet
-
disabled

Disables element.

boolean
false
error

Error message for element.

string
""
hideLabel

If enabled shows the label and description for screen readers only.

boolean
false
readonly

Makes the select field read-only. Note: HTML select doesn't natively support readonly, this is implemented via event handlers.

boolean
-
size

Changes font-size, padding and gaps.

"medium" "small"
"medium"
style

Sets inline-style on select wrapper.

string
-
value
bindable

Selected value.

string
""
Snippets
children

List of <option> elements.

 -
description

Extra description.

 -
label

Label for select.

 -

Properties included from: Omit<HTMLSelectAttributes, "size">