Animated React component — MapPinX / MapPinXIcon
Hover the map-pin-x icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { MapPinX } from "lucide-motion";Also exported as MapPinXIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { MapPinX } from "lucide-motion";
<MapPinX 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": "M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077"
}
],
[
"circle",
{
"cx": "12",
"cy": "10",
"r": "3"
}
],
[
"path",
{
"d": "m21.5 15.5-5 5"
}
],
[
"path",
{
"d": "m21.5 20.5-5-5"
}
]
]