npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lucide-react-motion

v0.4.0

Published

Lucide icons as animated React components, powered by Motion.

Readme

lucide-react-motion

Lucide icons as animated React components, powered by Motion.

Features

  • No closed-loop seam at rest — closed-path icons (gear, cloud, heart) settle to a clean, continuous stroke. The draw animates strokeDashoffset rather than Motion's pathLength shortcut, which would otherwise bake in a stroke-dasharray dash pattern and leave a hairline gap where the path closes; at rest the sweep collapses to a solid stroke (stroke-dasharray: 0).
  • 1,700+ icons, generated from lucide-static, individually importable so the bundler tree-shakes anything you don't use.
  • Six triggers: hover, click, mount, in-view, parent-hover, manual (with an imperative ref handle).
  • Per-icon character animations via mode="signature" — a heart beats, a bell rings, a clock ticks. Falls back to the default stroke-on draw for icons without a registered signature.
  • RSC-safe — generated icons carry no per-file "use client"; the directive lives on the published bundle once so server components can import the package without breaking the boundary.
  • Full Motion escape hatch — pass variants or a mode factory to take over animation entirely with the resolved timing context (duration, delay, stagger, easing, repeat, plus the path's measured pathLength).
  • Reduced-motion aware — respects the OS preference by default, with reducedMotion="always" | "never" overrides.

Install

npm install lucide-react-motion motion react react-dom

motion, react, and react-dom are peer dependencies.

Usage

import { Heart, Settings, Bell } from "lucide-react-motion";

export function Demo() {
  return (
    <>
      <Heart trigger="hover" size={32} />
      <Settings mode="signature" trigger="hover" />
      <Bell trigger="click" onLeave="snap" />
    </>
  );
}

App-wide defaults via MotionIconConfig:

import { MotionIconConfig } from "lucide-react-motion";

<MotionIconConfig trigger="hover" mode="signature" duration={0.45}>
  <App />
</MotionIconConfig>;

See the documentation site for the full API, gallery, and playground.