A control that indicates whether a setting is on or off.
Made by imskyleenInstallation
Usage
API Reference
Switch
Base UI API Reference - Switch.Root| Prop | 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.Thumb| Prop | 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"> | - |