a-select
Select
Accessible and styleable select component.
Example
Attributes
Name | Type | Default value | Description |
---|---|---|---|
direction
|
"up" | "down" | "down" |
In what direction the dropdown openes. |
disabled
|
boolean | false |
Whether the dropdown is disabled. |
name
|
string | undefined |
The name or key used in form data. |
opened
|
boolean | false |
Whether the dropdown is open. |
required
|
boolean | false |
Wether the input is required. |
value
|
string | undefined |
The selected option. |
Events
Name | Description |
---|---|
change
|
Fired when the value changes. |
input
|
Fired when the selected value changes. |
open
|
Fired when the dropdown is opened. |
close
|
Fired when the dropdown is closed. |