Components
/
Toggle
Toggle
A two-state button that can be either on or off.
Preview
Installation
npx shadcn@latest add https://ui.saturation.io/r/toggle.jsonUsage
import { Toggle } from "@/components/ui/toggle"
<Toggle>Toggle</Toggle>Examples
Outline
Sizes
With Text
Disabled
API Reference
Toggle
Extends Radix UI Toggle primitive with variant and size options.
variant - "default" | "outline"size - "default" | "sm" | "lg"