Animated React component — TruckElectric / TruckElectricIcon
Hover the truck-electric icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { TruckElectric } from "lucide-motion";Also exported as TruckElectricIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { TruckElectric } from "lucide-motion";
<TruckElectric 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": "M14 19V7a2 2 0 0 0-2-2H9"
}
],
[
"path",
{
"d": "M15 19H9"
}
],
[
"path",
{
"d": "M19 19h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 9.38a1 1 0 0 0-.78-.38H14"
}
],
[
"path",
{
"d": "M2 13v5a1 1 0 0 0 1 1h2"
}
],
[
"path",
{
"d": "M4 3 2.15 5.15a.495.495 0 0 0 .35.86h2.15a.47.47 0 0 1 .35.86L3 9.02"
}
],
[
"circle",
{
"cx": "17",
"cy": "19",
"r": "2"
}
],
[
"circle",
{
"cx": "7",
"cy": "19",
"r": "2"
}
]
]