Edu Calvo

Pixel Brush Canvas

Component 1

About

A small pixel-art drawing canvas with pencil, eraser, fill, line, and rectangle brush tools plus a color palette, undo, and keyboard navigation.

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

Code

How Pixel Brush Canvas is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import PixelBrushCanvas from "@/components/ui/pixel-brush-canvas";

export default function PixelBrushCanvasDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <PixelBrushCanvas width={16} height={16} pixelSize={20} grid showTools />
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    235
  • AI Task List

    AI Task List

    160
  • Siri Orb

    Siri Orb

    160
  • Cursor Follow

    Cursor Follow

    154
  • Pixel Flow Field

    Pixel Flow Field

    142
  • Agent Avatar

    Agent Avatar

    130
  • Gravity Stars

    Gravity Stars

    112
  • Coverflow Carousel

    Coverflow Carousel

    95

Explore more

Part of SmoothUI — browse the full library on 21st.dev.