Two-state pressable button with default and outline variants, sized like Button.
Installation
$ curl -fsSL https://ui.digitexa.com/dx.mjs | node --input-type=module - add toggleAlso adds utils, theme and installs @radix-ui/react-toggle, class-variance-authority.
Usage
import { Toggle, toggleVariants } from "@/components/ui/toggle";The Code tab above shows a complete example.