Animated React component — WandSparkles / WandSparklesIcon
Hover the wand-sparkles icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { WandSparkles } from "lucide-motion";Also exported as WandSparklesIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { WandSparkles } from "lucide-motion";
<WandSparkles 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": "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"
}
],
[
"path",
{
"d": "m14 7 3 3"
}
],
[
"path",
{
"d": "M5 6v4"
}
],
[
"path",
{
"d": "M19 14v4"
}
],
[
"path",
{
"d": "M10 2v2"
}
],
[
"path",
{
"d": "M7 8H3"
}
],
[
"path",
{
"d": "M21 16h-4"
}
],
[
"path",
{
"d": "M11 3H9"
}
]
]