Animate UI

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 imskyleen
Edit on GitHub

Installation

Usage

<Switch />

API Reference

Switch

PropTypeDefault
startIcon?
React.ReactElement
-
endIcon?
React.ReactElement
-
thumbIcon?
React.ReactElement
-
pressedWidth?
number
19
...props?
HTMLMotionProps<"button">
-

Credits

Built by Skyleen. The source code is available on GitHub.