About
A switch-style checkbox toggle (on/off) with three faithful visual skins — a plain CSS track, a hand-drawn brass door-latch, or a flickering clay lamp — ported from susegad-ui's sg-toggle web component.
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
import Toggle from "@/components/ui/toggle";
export default function ToggleQuietDemo() {
return (
<div className="w-full max-w-md mx-auto p-6">
<fieldset className="grid gap-3 rounded-lg border p-4">
<legend className="mb-1 font-medium">Notifications</legend>
<Toggle
skin="quiet"
name="email"
value="yes"
defaultChecked
label="Email me about product updates"
/>
<Toggle
skin="quiet"
name="sms"
value="yes"
label="Text me when an order ships"
/>
<Toggle
skin="quiet"
name="marketing"
value="yes"
disabled
label="Marketing emails (managed by your admin)"
/>
</fieldset>
</div>
);
}













