A control that indicates whether a setting is on or off.
Made by imskyleenInstallation
Usage
API Reference
Switch
| Prop | Type | Default |
|---|---|---|
startIcon? | React.ReactElement | - |
endIcon? | React.ReactElement | - |
thumbIcon? | React.ReactElement | - |
pressedWidth? | number | 19 |
...props? | HTMLMotionProps<"button"> | - |
The render property is not supported in the Switch component, as it is
used for animation.
Credits
- Base UI Switch
- Credit to shadcn/ui for style inspiration.