ghaerdi

Neon Toggle Switch

Forms

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>
  );
}

Dependencies

More by ghaerdi

View all
  • Toast Notification

    Toast Notification

    3
  • Chart

    Chart

    2
  • Accordion

    Accordion

  • Calendar

    Calendar

  • Neon Glass Select

    Neon Glass Select

  • Skeleton

    Skeleton

  • Radio Group

    Radio Group

  • Neon Status Badge

    Neon Status Badge

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19