Animated React component — Mailbox / MailboxIcon
Hover the mailbox icon above to see the default draw animation.
Tree-shakable named import — only the icons you reference end up in your bundle.
import { Mailbox } from "lucide-motion";Also exported as MailboxIcon for the Lucide-suffix naming convention.
Drop the component into your JSX. The default trigger plays the draw animation on hover.
import { Mailbox } from "lucide-motion";
<Mailbox 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": "M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z"
}
],
[
"polyline",
{
"points": "15,9 18,9 18,11"
}
],
[
"path",
{
"d": "M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2"
}
],
[
"line",
{
"x1": "6",
"x2": "7",
"y1": "10",
"y2": "10"
}
]
]