Animated React component — ChessKing / ChessKingIcon
Hover the chess-king icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { ChessKing } from "lucide-motion";Also exported as ChessKingIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { ChessKing } from "lucide-motion";
<ChessKing 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": "M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z"
}
],
[
"path",
{
"d": "m6.7 18-1-1C4.35 15.682 3 14.09 3 12a5 5 0 0 1 4.95-5c1.584 0 2.7.455 4.05 1.818C13.35 7.455 14.466 7 16.05 7A5 5 0 0 1 21 12c0 2.082-1.359 3.673-2.7 5l-1 1"
}
],
[
"path",
{
"d": "M10 4h4"
}
],
[
"path",
{
"d": "M12 2v6.818"
}
]
]