Components/Toggle
Toggle
A composable toggle primitive for modern product interfaces.
Base UI
Interactive example
Installation
Run the CLI from your project root. Dependencies and component source are added automatically.
$npx quackelements add toggleUsage
The generated file lives in your repository, so the component API and styles remain fully editable.
example.tsx
import { Toggle } from "@/components/quack/toggle"
<Toggle defaultPressed aria-label="Toggle bold"><Bold /></Toggle>