About
A toggle switch for binary on/off settings, styled with a glassmorphic industrial surface and a glowing neon accent in its checked state.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Neon Toggle Switch to your project and fits it to your theme.
Code
How Neon Toggle Switch is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Switch } from "@/components/ui/switch";
export default function SwitchDemo() {
return (
<div className="flex min-h-40 w-full items-center justify-center rounded-lg border border-white/10 bg-neutral-950 p-6">
<div className="flex flex-col gap-4 text-sm text-neutral-200">
<label className="flex items-center justify-between gap-6">
<span>Auto-deploy</span>
<Switch defaultChecked />
</label>
<label className="flex items-center justify-between gap-6">
<span>Telemetry</span>
<Switch defaultChecked />
</label>
</div>
</div>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)