Animated React component — Bug / BugIcon
Hover the bug icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Bug } from "lucide-motion";Also exported as BugIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Bug } from "lucide-motion";
<Bug 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 20v-9"
}
],
[
"path",
{
"d": "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"
}
],
[
"path",
{
"d": "M14.12 3.88 16 2"
}
],
[
"path",
{
"d": "M21 21a4 4 0 0 0-3.81-4"
}
],
[
"path",
{
"d": "M21 5a4 4 0 0 1-3.55 3.97"
}
],
[
"path",
{
"d": "M22 13h-4"
}
],
[
"path",
{
"d": "M3 21a4 4 0 0 1 3.81-4"
}
],
[
"path",
{
"d": "M3 5a4 4 0 0 0 3.55 3.97"
}
],
[
"path",
{
"d": "M6 13H2"
}
],
[
"path",
{
"d": "m8 2 1.88 1.88"
}
],
[
"path",
{
"d": "M9 7.13V6a3 3 0 1 1 6 0v1.13"
}
]
]