Animated React component — SquarePen / SquarePenIcon
Hover the square-pen icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SquarePen } from "lucide-motion";Also exported as SquarePenIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SquarePen } from "lucide-motion";
<SquarePen 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 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
}
],
[
"path",
{
"d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"
}
]
]