About
A labeled on/off switch for instantly applying a single setting, with optional hint text, sizes, and a slim track variant.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Toggle to your project and fits it to your theme.
Code
How Toggle is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import Toggle from "@/components/ui/toggle";
export default function ToggleSlimDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center bg-white p-8">
<Toggle slim size="sm" aria-label="Remember me" />
</div>
);
}







