A two-state button that can be either on or off.
Made by imskyleenInstallation
Usage
API Reference
Toggle
Radix UI API Reference - Toggle.Root| Prop | Type | Default |
|---|---|---|
...props? | HTMLMotionProps<"button"> | - |
The asChild property is not supported in the Toggle component, as it is
used for animation.
ToggleHighlight
| Prop | Type | Default |
|---|---|---|
...props? | HTMLMotionProps<"div"> | - |
ToggleItem
| Prop | Type | Default |
|---|---|---|
...props? | HTMLMotionProps<"div"> | - |