Switch
To use the switch component, first import it: ```js import {BaseSwitch} from 'src/components' ``` Global usage ```js Vue.component(BaseSwitch.name, BaseSwitch) ```
For local usage
export default {
components: {
BaseSwitch
}
}
Simple switch
Show Code
With text
ON OFF
ON OFF
Show Code
Slots
Show Code
Switch Props
Switch events
| Name | Description | Params |
|---|---|---|
| input | triggers when the binding value changes | the updated value |
Switch Slots
| Slot | Description |
|---|---|
| on | Content to be displayed on switch when switch is on |
| off | Content to be displayed on switch when switch is off |