Components/Toggle

Toggle

A composable toggle primitive for modern product interfaces.

Interactive example

Installation

Run the CLI from your project root. Dependencies and component source are added automatically.

$npx quackelements add toggle

Usage

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>