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.
Installation
Props
Animate UI props
Prop | Type | Default |
---|---|---|
leftIcon? | React.ElementType | - |
rightIcon? | React.ElementType | - |
thumbIcon? | React.ElementType | - |
Credits
- We use Headless UI for the popover component.
- We take our inspiration from Shadcn UI for the popover style.