Switch

Properties

NameTypeDefaultDescription
checkedBooleanfalseWhether the switch is in the checked/on state.
disabledBooleanfalseWhether the switch is disabled (inherited from FormAssociated).

Events

NameTypeDescription
changeCustomEvent<boolean>Dispatched when the checked state changes. The detail property contains the new checked state.

Methods

Inherits all standard HTMLElement methods.