A two-state button that latches down while on: a transparent Mac textured toolbar toggle by default, a square Aqua bezel with variant="outline", or an iPhone bar button with variant="ios".
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import { Toggle } from "@/components/ui/toggle"<Toggle>Toggle</Toggle>Examples
Outline
With Text
Small
Large
Disabled
iOS
A latching iPhone bar button, drawn for a navigation bar or toolbar.
<Toggle variant="ios" aria-label="Favourite">
<StarIcon />
</Toggle>