Animated React component — SquareMousePointer / SquareMousePointerIcon
Hover the square-mouse-pointer icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SquareMousePointer } from "lucide-motion";Also exported as SquareMousePointerIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SquareMousePointer } from "lucide-motion";
<SquareMousePointer size={32} />duration={0.2} stagger={0}duration={1.5} stagger={0.4}easing="linear"trigger="mount" repeat={Infinity}The icon's underlying SVG node tree — useful if you need to render or transform it yourself instead of using the component.
[
[
"path",
{
"d": "M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"
}
],
[
"path",
{
"d": "M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"
}
]
]