Animated React component — NotebookPen / NotebookPenIcon
Hover the notebook-pen icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { NotebookPen } from "lucide-motion";Also exported as NotebookPenIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { NotebookPen } from "lucide-motion";
<NotebookPen 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": "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"
}
],
[
"path",
{
"d": "M2 6h4"
}
],
[
"path",
{
"d": "M2 10h4"
}
],
[
"path",
{
"d": "M2 14h4"
}
],
[
"path",
{
"d": "M2 18h4"
}
],
[
"path",
{
"d": "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"
}
]
]