Skip to content

Switch

Switch

PSwitch is a boolean toggle with a label.

Demo

Usage

<PSwitch v-model="enabled" label="Enable alerts" />

Props

PropTypeDefaultNotes
valueBooleanfalsev-model value.
disabledBooleanfalseDisables the toggle.
labelStringRequired label text.

Events

EventPayloadDescription
inputBooleanEmits when toggled.