Animated React component — PlugZap / PlugZapIcon
Hover the plug-zap icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { PlugZap } from "lucide-motion";Also exported as PlugZapIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { PlugZap } from "lucide-motion";
<PlugZap 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": "M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"
}
],
[
"path",
{
"d": "m2 22 3-3"
}
],
[
"path",
{
"d": "M7.5 13.5 10 11"
}
],
[
"path",
{
"d": "M10.5 16.5 13 14"
}
],
[
"path",
{
"d": "m18 3-4 4h6l-4 4"
}
]
]