LN

indevuiSwitch

Forms 2

About

Here is switch component by indevui

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds indevuiSwitch to your project and fits it to your theme.

Code

How indevuiSwitch is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// demo.tsx
import Switch from '@/components/ui/indevui-switch';
import { BellRing, MicOff } from 'lucide-react';

function SwitchDemo() {
  return (
    <div className="w-full max-w-sm space-y-6 rounded-md border p-6">
      <div className="flex items-center justify-between space-x-2">
        <label htmlFor="notifications" className="flex flex-col space-y-1">
          <span className="font-medium">Push Notifications</span>
          <span className="text-sm text-muted-foreground">Receive updates on new features.</span>
        </label>
        <Switch id="notifications" />
      </div>

      <div className="flex items-center justify-between space-x-2">
        <label htmlFor="microphone" className="font-medium text-foreground">
          Microphone
        </label>
        <Switch id="microphone" defaultChecked />
      </div>

      <div className="flex items-center justify-between space-x-2">
        <label htmlFor="airplane-mode" className="font-medium text-foreground opacity-50">
          Airplane Mode
        </label>
        <Switch id="airplane-mode" disabled />
      </div>
    </div>
  );
}

export { SwitchDemo as DemoOne };

Dependencies

More by LN

View all
  • Pricing Interaction

    Pricing Interaction

    1.4K
  • Dorpdown Navigation

    Dorpdown Navigation

    1.2K
  • Visualize Booking

    Visualize Booking

    618
  • Assisted Password Confirmation

    Assisted Password Confirmation

    585
  • Tags Selector

    Tags Selector

    531
  • Mega Menu

    Mega Menu

    386
  • Feedback Slider

    Feedback Slider

    326
  • FlipButton

    FlipButton

    288

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Book A Demo 1

    Book A Demo 1

    69
  • Login 2

    Login 2

    7