Animated React component — Ruler / RulerIcon
Hover the ruler icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Ruler } from "lucide-motion";Also exported as RulerIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Ruler } from "lucide-motion";
<Ruler 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": "M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"
}
],
[
"path",
{
"d": "m14.5 12.5 2-2"
}
],
[
"path",
{
"d": "m11.5 9.5 2-2"
}
],
[
"path",
{
"d": "m8.5 6.5 2-2"
}
],
[
"path",
{
"d": "m17.5 15.5 2-2"
}
]
]