Skip to content

Toggle

A two-state button that can be either on or off.

Usage

vue
<script setup lang="ts">
import { ref } from 'vue';
import { Toggle } from '@youcan/ui-vue3';

const isActive = ref(false);
</script>

<template>
  <Toggle v-model="isActive" />
</template>

API Reference