Description:
PulsoIcon is an animated SVG icon library for React.
Each icon has its own motion, and familiar Lucide names and props let you switch icons one import at a time.
Preview

Features
- Outline and filled variants for UI icons, plus line-drawn brand logos.
- Hover and focus triggers on the surrounding button, link, tab, or menu item.
- Programmatic playback for events such as a completed save.
- Stroke widths that can stay fixed as an icon changes size.
- Static icons when the user requests reduced motion.
Add an animated icon to a button
Install PulsoIcon and Motion dependencies.
npm install pulsoicon-react motion@^12Import the icon from the ESM entry point. Put it inside the button so hover or keyboard focus on the control plays its animation.
import { Bell } from "pulsoicon-react/icons/bell";
export function NotificationsButton() {
return (
<button type="button" aria-label="Notifications">
<Bell size={20} strokeWidth={1.75} />
</button>
);
}Available Icon props
| Prop | Type, default, and effect |
|---|---|
size | number | string, default 24. Sets the SVG width and height. Numbers are pixel values. |
color | string, default "currentColor". Sets the stroke and the fill of solid glyphs. |
strokeWidth | number | string, default 2. Stroke width on the 24-unit icon grid. |
absoluteStrokeWidth | boolean, default false. Keeps the stroke width in pixels as the icon scales. |
solid | boolean, default false. Selects the filled glyph. |
animated | boolean, default true. Set it to false to render a static SVG. |
autoAnimated | boolean, default true. Set it to false to leave playback to play or the icon ref. |
play | boolean, optional. Set it to true to play and false to return to rest. |
className, style | Applied to the SVG. |
Play an icon from React state
Use autoAnimated={false} when the trigger comes from the app. In this example, saved comes from the result of a save request, so hovering the status label has no effect.
import { Check } from "pulsoicon-react/icons/check";
export function SaveStatus({ saved }: { saved: boolean }) {
return (
<span role="status">
<Check size={18} autoAnimated={false} play={saved} />
{saved ? "Saved" : "Unsaved changes"}
</span>
);
}For imperative playback, attach a ref typed as IconHandle from pulsoicon-react. Both startAnimation() and stopAnimation() return a promise that resolves when the icon finishes moving.
Switch from Lucide React
Change the import path for existing named icons such as Bell and Calendar. Keep factory calls such as createLucideIcon on lucide-react. For icon names stored in configuration, PulsoIcon exports ICONS from pulsoicon-react/all. Stick to named imports when you know which icons the UI needs at build time.