Skip to content

ToggleButton

An aria-pressed two-state toggle button; the pressed state uses the primary color background.

Basic Usage

Basic

BoldItalic

Events

Change events

Underline

Disabled

Disabled

StrikethroughStrikethrough (pressed)

API

Attributes

AttributeDescriptionTypeDefault
disabledDisabledboolean
pressedWhether pressed (controlled)boolean
valueValue (returned with events)string

Events

EventDescription
oas-changeToggle, detail: { value, pressed }

Slots

NameDescription
default