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-animated

v1.0.0

Published

Ícones Lucide animados com React e Motion

Readme

lucide-animated

Biblioteca React com ícones no estilo Lucide e animações (hover/controladas) usando Motion.

Instalação

No seu projeto React:

npm install lucide-animated react motion
# ou
pnpm add lucide-animated react motion
# ou
yarn add lucide-animated react motion

Peer dependencies: react (>=18) e motion (>=11).

Uso

Importar ícones

import { CircleCheckIcon, TrendingUpIcon, ListIcon } from 'lucide-animated'

Uso básico (animação no hover)

Por padrão, a animação dispara ao passar o mouse sobre o ícone:

<CircleCheckIcon className="text-blue-500" size={32} />
<TrendingUpIcon size={28} />

Controle por ref

Você pode controlar a animação programaticamente usando a ref. Quando usa a ref, o hover não dispara a animação automaticamente:

import { useRef } from 'react'
import { CircleCheckIcon, type CircleCheckIconHandle } from 'lucide-animated'

function MyComponent() {
  const iconRef = useRef<CircleCheckIconHandle>(null)

  return (
    <>
      <CircleCheckIcon ref={iconRef} size={28} />
      <button onClick={() => iconRef.current?.startAnimation()}>
        Animar
      </button>
      <button onClick={() => iconRef.current?.stopAnimation()}>
        Parar
      </button>
    </>
  )
}

Props comuns

Todos os ícones aceitam:

  • size (number): tamanho em pixels (padrão varia por ícone, ex.: 24 ou 28).
  • className: classes CSS (ex.: Tailwind para cor text-current, text-blue-500).
  • Todas as props de HTMLAttributes<HTMLDivElement>: onMouseEnter, onMouseLeave, style, etc.

A cor do traço segue currentColor, então use className="text-..." para definir a cor.

Ícones disponíveis

| Componente | Descrição | |---------------------|------------------| | CircleCheckIcon | Círculo com check | | CircleCheckBigIcon| Círculo grande com check | | DatabaseIcon | Ícone de banco de dados | | GitBranchIcon | Branch do Git | | ListIcon | Lista | | MessageCircleIcon | Balão de mensagem | | SquareStackIcon | Pilha de quadrados | | TrendingUpIcon | Gráfico subindo | | TrendingDownIcon | Gráfico caindo |

Sincronizar com lucide.dev/icons

Os ícones vêm do lucide-animated. O script de atualização só adiciona ícones que existem no Lucide (evita duplicar e mantém alinhado ao lucide.dev):

  • Quem já existe na biblioteca → não cria de novo.
  • Quem não existe e está no Lucide + lucide-animated → adiciona.
node scripts/fetch-icons.mjs

Para filtrar pela lista oficial do Lucide, é preciso do arquivo scripts/lucide-icon-names.json. Duas opções:

  1. Gerar com token do GitHub (evita 403):

    set GITHUB_TOKEN=seu_token
    node scripts/fetch-lucide-list.mjs

    Depois rode node scripts/fetch-icons.mjs de novo.

  2. Sem lista do Lucide: o script considera todos os ícones do lucide-animated (sem filtro por lucide.dev).

Build da biblioteca

Para gerar o pacote na pasta dist/:

npm install
npm run build

Para publicar no npm, ajuste o name no package.json (ex.: @seu-usuario/lucide-animated) e use npm publish.

Licença

MIT