Switch
Switches are a pleasant interface for toggling a value between two states, and offer the same semantics and keyboard navigation as native checkbox elements.
Made by imskyleenInstallation
Usage
API Reference
Switch
Headless UI API Reference - SwitchProp | Type | Default |
---|---|---|
...props? | HTMLMotionProps<"button"> | - |
SwitchThumb
Prop | Type | Default |
---|---|---|
pressedAnimation? | 0 | - |
...props? | HTMLMotionProps<"div"> | - |
SwitchIcon
Prop | Type | Default |
---|---|---|
position | 0 | - |
...props? | HTMLMotionProps<"div"> | - |