Daiwiik Harihar

Cartoon Switch

Buttons

About

A tactile, heavy-duty mechanical rocker switch with deep drop shadows, edge glare, and snappy Framer Motion animations.

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

Code

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

Usage.tsx

// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos

import { CartoonSwitch } from "@/components/ui/cartoon-switch";

// ONLY DEFAULT EXPORT WILL BE TREATED AS A DEMO
export default function DemoOne() {
  return (
    <main className="grid min-h-screen place-items-center bg-neutral-50 dark:bg-[#0A0A0A] transition-colors duration-300">
      <CartoonSwitch />
    </main>
  );
}

Dependencies

More by Daiwiik Harihar

View all
  • Spatial Product Showcase

    Spatial Product Showcase

    2.3K
  • Perspective Tunnel Hero

    Perspective Tunnel Hero

    1.2K
  • Constellation Grid

    Constellation Grid

    1.1K
  • Focus Rail

    Focus Rail

    1.1K
  • Elastic Gallery

    Elastic Gallery

    958
  • Rolling List

    Rolling List

    929
  • Hero Shutter Text

    Hero Shutter Text

    903
  • Text Block Animation

    Text Block Animation

    859

More in Buttons

View all
  • Button

    Button

    5
  • Texture Button

    Texture Button

    97
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • HeroUI Button Group

    HeroUI Button Group

  • Base Button

    Base Button

    4
  • App Store Button

    App Store Button

    458