Docs / Components / Drawing Cursor

Drawing Cursor

A premium background component where the mouse cursor draws a fading pencil-like line on a canvas. Supports touch and smooth opacity fading.

Dependencies

Install the following dependencies to use this component:

1npm install clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add drawing-cursor

Props Reference

PropTypeDefaultDescription
lineColorstring'#b6eb00'Color of the drawn line.
lineWidthnumber2Width of the pencil stroke.
fadeDurationnumber1000Duration in ms for the drawn path to disappear.
classNamestring''Additional CSS classes for the wrapper.