Animated React component — Spotlight / SpotlightIcon
Hover the spotlight icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Spotlight } from "lucide-motion";Also exported as SpotlightIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Spotlight } from "lucide-motion";
<Spotlight 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.295 19.562 16 22"
}
],
[
"path",
{
"d": "m17 16 3.758 2.098"
}
],
[
"path",
{
"d": "m19 12.5 3.026-.598"
}
],
[
"path",
{
"d": "M7.61 6.3a3 3 0 0 0-3.92 1.3l-1.38 2.79a3 3 0 0 0 1.3 3.91l6.89 3.597a1 1 0 0 0 1.342-.447l3.106-6.211a1 1 0 0 0-.447-1.341z"
}
],
[
"path",
{
"d": "M8 9V2"
}
]
]