Animated React component — Swords / SwordsIcon
Hover the swords icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Swords } from "lucide-motion";Also exported as SwordsIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Swords } from "lucide-motion";
<Swords 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.
[
[
"polyline",
{
"points": "14.5 17.5 3 6 3 3 6 3 17.5 14.5"
}
],
[
"line",
{
"x1": "13",
"x2": "19",
"y1": "19",
"y2": "13"
}
],
[
"line",
{
"x1": "16",
"x2": "20",
"y1": "16",
"y2": "20"
}
],
[
"line",
{
"x1": "19",
"x2": "21",
"y1": "21",
"y2": "19"
}
],
[
"polyline",
{
"points": "14.5 6.5 18 3 21 3 21 6 17.5 9.5"
}
],
[
"line",
{
"x1": "5",
"x2": "9",
"y1": "14",
"y2": "18"
}
],
[
"line",
{
"x1": "7",
"x2": "4",
"y1": "17",
"y2": "20"
}
],
[
"line",
{
"x1": "3",
"x2": "5",
"y1": "19",
"y2": "21"
}
]
]