Animated React component — UserStar / UserStarIcon
Hover the user-star icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { UserStar } from "lucide-motion";Also exported as UserStarIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { UserStar } from "lucide-motion";
<UserStar 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": "M16.051 12.616a1 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"
}
],
[
"path",
{
"d": "M8 15H7a4 4 0 0 0-4 4v2"
}
],
[
"circle",
{
"cx": "10",
"cy": "7",
"r": "4"
}
]
]