Beta
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

Installation

Usage

<Switch />

Props

Animate UI props

PropTypeDefault
thumbIcon?
React.ReactNode
-
rightIcon?
React.ReactNode
-
leftIcon?
React.ReactNode
-

Credits

  • We use Headless UI for the popover component.
  • We take our inspiration from Shadcn UI for the popover style.

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

On this page