Animated React component — DiamondPercent / DiamondPercentIcon
Hover the diamond-percent icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { DiamondPercent } from "lucide-motion";Also exported as DiamondPercentIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { DiamondPercent } from "lucide-motion";
<DiamondPercent 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": "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": "M9.2 9.2h.01"
}
],
[
"path",
{
"d": "m14.5 9.5-5 5"
}
],
[
"path",
{
"d": "M14.7 14.8h.01"
}
]
]