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.4K
  • Davincho Hero-1

    Davincho Hero-1

    716
  • Aero Hero-3

    Aero Hero-3

    632
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    586
  • Features

    Features

    539
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    492
  • Blogs

    Blogs

    406
  • Aero Hero-1

    Aero Hero-1

    387

More in Buttons

View all
  • Button

    Button

    151
  • Great UI Button

    Great UI Button

    19
  • Eclipse Button

    Eclipse Button

    46
  • Base Button

    Base Button

    2
  • Button

    Button

    3
  • Button Group

    Button Group

    4
  • Button

    Button

    20
  • Texture Button

    Texture Button

    113