Switch
A control that allows the user to toggle between checked and not checked.
Made by imskyleenInstallation
Usage
API Reference
Switch
Radix UI API Reference - Switch.RootProp | Type | Default |
---|---|---|
...props? | HTMLMotionProps<"button"> | - |
The asChild
property is not supported in the Switch
component, as it is
used for animation.
SwitchThumb
Radix UI API Reference - Switch.ThumbProp | Type | Default |
---|---|---|
pressedAnimation? | 0 | - |
...props? | HTMLMotionProps<"div"> | - |
The asChild
property is not supported in the SwitchThumb
component, as it
is used for animation.
SwitchIcon
Prop | Type | Default |
---|---|---|
position | 0 | - |
...props? | HTMLMotionProps<"div"> | - |