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
Props
Animate UI props
Prop | Type | Default |
---|---|---|
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.