Preet Suthar

Switch

Forms 19

About

A control that allows the user to toggle between checked and not checked with smooth animations and multiple variants.

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

Code

How 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 DemoOne() {
  return <Switch defaultChecked />;
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.6K
  • Magic Text

    Magic Text

    860
  • Toolbar

    Toolbar

    837
  • Hero 2

    Hero 2

    825
  • Typewriter Text

    Typewriter Text

    787
  • Full Screen Signup

    Full Screen Signup

    753
  • AI Chat Input

    AI Chat Input

    751

More in Forms

View all
  • Premium Auth

    Premium Auth

    525
  • Contact Card

    Contact Card

    1K
  • Form

    Form

    16
  • Card Studio

    Card Studio

    41
  • Login 2

    Login 2

    7
  • Book A Demo 3

    Book A Demo 3

    90
  • Book A Demo 1

    Book A Demo 1

    74
  • HeroUI Field Error

    HeroUI Field Error

    10