Animated React component — FileCog / FileCogIcon
Hover the file-cog icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { FileCog } from "lucide-motion";Also exported as FileCogIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { FileCog } from "lucide-motion";
<FileCog 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": "M15 8a1 1 0 0 1-1-1V2a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8z"
}
],
[
"path",
{
"d": "M20 8v12a2 2 0 0 1-2 2h-4.182"
}
],
[
"path",
{
"d": "m3.305 19.53.923-.382"
}
],
[
"path",
{
"d": "M4 10.592V4a2 2 0 0 1 2-2h8"
}
],
[
"path",
{
"d": "m4.228 16.852-.924-.383"
}
],
[
"path",
{
"d": "m5.852 15.228-.383-.923"
}
],
[
"path",
{
"d": "m5.852 20.772-.383.924"
}
],
[
"path",
{
"d": "m8.148 15.228.383-.923"
}
],
[
"path",
{
"d": "m8.53 21.696-.382-.924"
}
],
[
"path",
{
"d": "m9.773 16.852.922-.383"
}
],
[
"path",
{
"d": "m9.773 19.148.922.383"
}
],
[
"circle",
{
"cx": "7",
"cy": "18",
"r": "3"
}
]
]