Animate UI

Toggle

A two-state button that can be on or off.

Made by imskyleen
Edit on GitHub

Installation

Usage

<Toggle />

API Reference

Toggle

PropTypeDefault
variant?
"default" | "outline"
-
size?
"default" | "sm" | "lg" | "icon"
-
...props?
HTMLMotionProps<"button">
-

The render property is not supported in the Toggle component, as it is used for animation.

Credits

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