Edu Calvo

Drawing Cursor

Component 34

About

A canvas overlay that draws a fading, tapered ink trail following the user's mouse cursor over any content.

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

Code

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

Usage.tsx

"use client";

import DrawingCursor from "@/components/ui/drawing-cursor";

export default function DrawingCursorDemo() {
  return (
    <DrawingCursor className="flex h-screen w-full items-center justify-center bg-background">
      <p className="pointer-events-none select-none text-2xl font-medium text-muted-foreground">
        Move your cursor to draw
      </p>
    </DrawingCursor>
  );
}

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.