Cnippet

Toggle

Buttons

About

A two-state button that can be on or off.

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

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    686
  • Aero Hero-3

    Aero Hero-3

    579
  • Features

    Features

    515
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    501
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    470
  • Blogs

    Blogs

    398
  • Aero Hero-1

    Aero Hero-1

    364

More in Buttons

View all
  • Texture Button

    Texture Button

    98
  • Button

    Button

    1
  • Button

    Button

    68
  • Eclipse Button

    Eclipse Button

    3
  • Button

    Button

    65
  • App Store Button

    App Store Button

    459
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Base Button

    Base Button

    4