- Docs
- components
- 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
CLI
Copy & Paste
npx @sly-cli/sly add jolly-ui toggle
Note: Only the default style can be installed via CLI at the moment
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