Toggle
A two-state button that can be either on or off.
Toggle
Variants
Sizes
Installation
1pnpm dlx shadcn@latest add @glasswave/toggleUsage
1import { Toggle } from "glasswave";1<Toggle aria-label="Toggle italic">2 <FontItalicIcon className="h-4 w-4" />3</Toggle>API Reference
Built on Radix UI Toggle.
Toggle
| Prop | Type | Default |
|---|---|---|
variant | "default" | "secondary" | "default" |
size | "default" | "sm" | "lg" | "default" |