ToggleButton
An aria-pressed two-state toggle button; the pressed state uses the primary color background.
Basic Usage
Basic
Example
Events
Change events
Example
Disabled
Disabled
Example
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
disabled | Disabled | boolean | — |
pressed | Whether pressed (controlled) | boolean | — |
value | Value (returned with events) | string | — |
Events
| Event | Description |
|---|---|
oas-change | Toggle, detail: { value, pressed } |
Slots
| Name | Description |
|---|---|
| default | — |