Preet Suthar

Toggle

Buttons

About

A two-state button that can be either on or off with smooth transitions and multiple variants.

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 DemoOne() {
  return <Toggle>Toggle me</Toggle>;
}

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

    858
  • Toolbar

    Toolbar

    834
  • Hero 2

    Hero 2

    824
  • Typewriter Text

    Typewriter Text

    786
  • Full Screen Signup

    Full Screen Signup

    751
  • AI Chat Input

    AI Chat Input

    746

More in Buttons

View all
  • Texture Button

    Texture Button

    97
  • Button

    Button

    5
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • HeroUI Button Group

    HeroUI Button Group

  • App Store Button

    App Store Button

    458
  • Base Button

    Base Button

    4