GitHub Stars

Toggle

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

Installation

npx shadcn@latest add @fulldev/toggle

Usage

---
import { Toggle } from "@/components/ui/toggle"
---
<Toggle>Toggle</Toggle>

Examples

API Reference

See the GitHub source code for more information on props. See the data-slot docs for more information on interactivity.