Switch
Switch
PSwitch is a boolean toggle with a label.
Demo
Usage
<PSwitch v-model="enabled" label="Enable alerts" />Props
| Prop | Type | Default | Notes |
|---|---|---|---|
value | Boolean | false | v-model value. |
disabled | Boolean | false | Disables the toggle. |
label | String | — | Required label text. |
Events
| Event | Payload | Description |
|---|---|---|
input | Boolean | Emits when toggled. |