Docs
Toggle

Toggle

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

Installation

bash
npx shadcn-vue@latest add toggle

Usage

vue
<script setup lang="ts">
import { Toggle } from '@/lib/registry/default/ui/toggle'
</script>

<template>
  <Toggle>Toggle</Toggle>
</template>
Edit this page on GitHub