Option
Option is required to be used within Select, Dropdown or OptionGroup.
Demos
See the demos of Select or the demos of Dropdown.
API
Props
| Name | Type | Default | Description |
|---|---|---|---|
label | string | The descriptive label of the option. | |
value | * | The value of the option. | |
disabled | boolean= | Whether the option is disabled. | |
hidden | boolean= | false | Whether the option is hidden. |
Slots
| Name | Description |
|---|---|
default | The entire content area of the option. Displays the label and potential check icon by default. |
label | The content of the option label. Displays the label prop by default. |
Events
The click event is triggered upon clicks without callback parameters.
Icons
| Name | Description |
|---|---|
checked | Checked state. |