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

@jzarache/tooltip-react

v1.0.2

Published

Un componente de Tooltip para React moderno, ligero, fluido y altamente personalizable.

Readme

@juanzbdev/tooltip-react

Un componente de Tooltip para React moderno, ligero, fluido y altamente personalizable.

Desarrollado con las mejores prácticas: animaciones fluidas (fade-in / fade-out), acoplamiento perfecto de bordes, y soporte total para Tailwind CSS o CSS puro.

Características

  • Animaciones fluidas: Transiciones suaves de entrada y salida gracias al manejo avanzado del ciclo de vida en React.
  • Bordes Dinámicos: La flecha del tooltip hereda dinámicamente el grosor y color del borde, fusionándose como una sola pieza (gracias al uso inteligente de drop-shadow).
  • Agnóstico al CSS: Estilos neutros por defecto. Úsalo como lienzo en blanco con Tailwind CSS o tus propios estilos en línea.
  • Portales de React: Renderizado seguro fuera de la jerarquía del DOM para evitar problemas con overflow: hidden o z-index.
  • Cero dependencias pesadas: Construido nativamente sobre React.

Instalación

DEMO: -->> https://tooltip-react-jz.vercel.app

Puedes instalarlo utilizando tu gestor de paquetes favorito:

npm install @juanzbdev/tooltip-react
pnpm add @juanzbdev/tooltip-react
yarn add @juanzbdev/tooltip-react

Uso Básico

  1. Importa el componente (¡los estilos se inyectan automáticamente!).
  2. Envuelve el elemento que disparará el tooltip.
import { Tooltip } from "@juanzbdev/tooltip-react";

export default function App() {
    return (
        <div style={{ padding: "50px" }}>
            <Tooltip label="¡Hola, soy un tooltip!" position="top">
                <button>Pasa el mouse sobre mí</button>
            </Tooltip>
        </div>
    );
}

Personalización (Tailwind / CSS)

El componente está diseñado para ser moldeable. Puedes sobreescribir completamente su apariencia usando la prop className (ideal para Tailwind CSS) o la prop style.

<Tooltip
    label="Tooltip verde y redondeado"
    position="right"
    style={{
        backgroundColor: "#10b981",
        borderColor: "#059669",
        borderRadius: "12px",
    }}
>
    <button>Hover me</button>
</Tooltip>

¡Magia!: La flecha heredará automáticamente el color de fondo y del borde, adaptándose perfectamente a tu diseño sin que tengas que hacer trucos adicionales.

Props (API)

| Prop | Tipo | Por defecto | Descripción | | -------------------- | ---------------------------------------- | --------------------------- | --------------------------------------------------------------------------------------------- | | label (*) | ReactNode | - | El texto o componente que se mostrará dentro del tooltip. | | children (*) | ReactNode | - | El elemento (ej. botón) sobre el cual se hará hover para mostrar el tooltip. | | position | 'top' \| 'bottom' \| 'left' \| 'right' | 'top' | La dirección hacia donde aparecerá el tooltip. | | showArrow | boolean | true | Muestra u oculta la flecha del tooltip. | | disabled | boolean | false | Desactiva temporalmente el tooltip para que no se muestre al hacer hover. | | delayHide | number | 0 | Retardo en milisegundos (ms) que el tooltip esperará antes de desaparecer al quitar el mouse. | | className | string | "" | Clases CSS adicionales (ej. Tailwind) para la caja del tooltip. | | style | CSSProperties | {} | Estilos en línea para personalizar la caja del tooltip. | | containerClassName | string | "react-tooltip-container" | Clase CSS para el contenedor que envuelve a los children. |

Licencia

MIT