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 ToggleWithLabelAndHintDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center bg-white p-8">
<Toggle
size="sm"
label="Remember me"
hint="Save my login details for next time."
/>
</div>
);
}







