Animated React component — SolarPanel / SolarPanelIcon
Hover the solar-panel icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SolarPanel } from "lucide-motion";Also exported as SolarPanelIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SolarPanel } from "lucide-motion";
<SolarPanel 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": "M11 2h2"
}
],
[
"path",
{
"d": "m14.28 14-4.56 8"
}
],
[
"path",
{
"d": "m21 22-1.558-4H4.558"
}
],
[
"path",
{
"d": "M3 10v2"
}
],
[
"path",
{
"d": "M6.245 15.04A2 2 0 0 1 8 14h12a1 1 0 0 1 .864 1.505l-3.11 5.457A2 2 0 0 1 16 22H4a1 1 0 0 1-.863-1.506z"
}
],
[
"path",
{
"d": "M7 2a4 4 0 0 1-4 4"
}
],
[
"path",
{
"d": "m8.66 7.66 1.41 1.41"
}
]
]