Animated React component — SwatchBook / SwatchBookIcon
Hover the swatch-book icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SwatchBook } from "lucide-motion";Also exported as SwatchBookIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SwatchBook } from "lucide-motion";
<SwatchBook 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": "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z"
}
],
[
"path",
{
"d": "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7"
}
],
[
"path",
{
"d": "M 7 17h.01"
}
],
[
"path",
{
"d": "m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8"
}
]
]