Switch Button API Overview
Initialization
<script setup>
import { Switch } from "@svar-ui/vue-core";
</script>
<template>
<!-- minimal configuration for initialization -->
<Switch />
</template>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Switch Button Properties
| checked | Optional. Defines whether a control is switched on/off |
| disabled | Optional. Defines whether a switch button is disabled |
| id | Optional. Sets an id for inner HTML input |
| value | Optional. Defines whether a control is switched on/off |
Switch Button Events
| change | Fires when a new value is selected in the control |