Skip to content

Toggle

Display a toggle field.

Usage

Use a v-model to make the Toggle reactive.

vue
<script setup>
import {ref} from 'vue'

const selected = ref(false)
</script>

<template>
  <s-toggle v-model="selected"/>
</template>

Released under the MIT License.