Animated React component — Gamepad2 / Gamepad2Icon
Hover the gamepad-2 icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Gamepad2 } from "lucide-motion";Also exported as Gamepad2Icon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Gamepad2 } from "lucide-motion";
<Gamepad2 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.
[
[
"line",
{
"x1": "6",
"x2": "10",
"y1": "11",
"y2": "11"
}
],
[
"line",
{
"x1": "8",
"x2": "8",
"y1": "9",
"y2": "13"
}
],
[
"line",
{
"x1": "15",
"x2": "15.01",
"y1": "12",
"y2": "12"
}
],
[
"line",
{
"x1": "18",
"x2": "18.01",
"y1": "10",
"y2": "10"
}
],
[
"path",
{
"d": "M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z"
}
]
]