Animated React component — SquareStar / SquareStarIcon
Hover the square-star icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { SquareStar } from "lucide-motion";Also exported as SquareStarIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { SquareStar } from "lucide-motion";
<SquareStar 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": "M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z"
}
],
[
"rect",
{
"x": "3",
"y": "3",
"width": "18",
"height": "18",
"rx": "2"
}
]
]