Switch
A control that indicates whether a setting is on or off.
Made by imskyleenInstallation
Usage
API Reference
Switch
Base UI API Reference - Switch.RootProp | Type | Default |
---|---|---|
...props? | HTMLMotionProps<"button"> | - |
The render
property is not supported in the Switch
component, as it is
used for animation.
SwitchThumb
Base UI API Reference - Switch.ThumbProp | Type | Default |
---|---|---|
pressedAnimation? | 0 | - |
...props? | HTMLMotionProps<"div"> | - |
The render
property is not supported in the SwitchThumb
component, as it
is used for animation.
SwitchIcon
Prop | Type | Default |
---|---|---|
position | 0 | - |
...props? | HTMLMotionProps<"div"> | - |