Animated React component — Dices / DicesIcon
Hover the dices icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Dices } from "lucide-motion";Also exported as DicesIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Dices } from "lucide-motion";
<Dices 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.
[
[
"rect",
{
"width": "12",
"height": "12",
"x": "2",
"y": "10",
"rx": "2",
"ry": "2"
}
],
[
"path",
{
"d": "m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6"
}
],
[
"path",
{
"d": "M6 18h.01"
}
],
[
"path",
{
"d": "M10 14h.01"
}
],
[
"path",
{
"d": "M15 6h.01"
}
],
[
"path",
{
"d": "M18 9h.01"
}
]
]