Switch
A control that allows the user to toggle between checked and not checked.
Preview
Installation
bash
npx sigma-ui add switchExamples
Basic
vue
<script setup lang="ts">
import { ref } from 'vue'
import { Switch } from '@/components/ui/switch'
const airplaneMode = ref(false)
</script>
<template>
<Switch
:model-value="airplaneMode"
@update:model-value="airplaneMode = $event"
/>
</template>Form
Sponsors
Support this project