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