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.8K
  • Constellation Grid

    Constellation Grid

    1.2K
  • Focus Rail

    Focus Rail

    1.1K
  • Elastic Gallery

    Elastic Gallery

    1K
  • Rolling List

    Rolling List

    942
  • Hero Shutter Text

    Hero Shutter Text

    926
  • Text Block Animation

    Text Block Animation

    891

More in Buttons

View all
  • Button

    Button

    74
  • Button

    Button

    1
  • Button

    Button

    7
  • Button

    Button

    66
  • Texture Button

    Texture Button

    101
  • Base Button

    Base Button

    1
  • Button Group

    Button Group

    6
  • Native Button

    Native Button

    27