A two-state button that can be either on or off.
Made by imskyleenInstallation
Usage
API Reference
Toggle
| Prop | Type | Default |
|---|---|---|
variant? | "default" | "outline" | - |
size? | "default" | "sm" | "lg" | "icon" | - |
The asChild property is not supported in the Toggle component, as it is
used for animation.
Credits
- Radix UI Toggle
- Credit to shadcn/ui for style inspiration.