- Docs
- Toggle Button
Toggle Button
A toggle button allows a user to toggle a selection on or off, for example switching between two states or modes.
Preview
Code
Installation
Manual
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Usage
import { Toggle } from "@/components/ui/toggle"
<Toggle>Toggle</Toggle>
Examples
Default
Preview
Code
Outline
Preview
Code
With Text
Preview
Code
Small
Preview
Code
Large
Preview
Code
Disabled
Preview
Code