* chore: update deps * feat: enable Volar hybrid mode * chore: lint * chore: build registry
829 B
829 B
| title | description | source | primitive |
|---|---|---|---|
| Switch | A control that allows the user to toggle between checked and not checked. | apps/www/src/lib/registry/default/ui/switch | https://www.radix-vue.com/components/switch.html |
Installation
npx shadcn-vue@latest add switch
<template #Manual>
Install the following dependency:
npm install radix-vue
Copy and paste the following code into your project
<<< @/lib/registry/default/ui/switch/Switch.vue
Usage
<script setup lang="ts">
import { Switch } from '@/components/ui/switch'
</script>
<template>
<Switch />
</template>