Animated React component — DiamondPlus / DiamondPlusIcon
Hover the diamond-plus icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { DiamondPlus } from "lucide-motion";Also exported as DiamondPlusIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { DiamondPlus } from "lucide-motion";
<DiamondPlus 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": "M12 8v8"
}
],
[
"path",
{
"d": "M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z"
}
],
[
"path",
{
"d": "M8 12h8"
}
]
]