Toggle

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

Preview

Installation

bash
npx sigma-ui add toggle

Examples

Basic

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

<template>
  <Toggle>Toggle</Toggle>
</template>

Default

Outline

With Text

Small

Large

Disabled

Edit this page on GitHub