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

react-sketch-tooltip

v0.0.7

Published

A customizable sketch-style tooltip for React, inspired by comic-style speech bubbles.

Readme

react-sketch-tooltip

A customizable sketch-style tooltip for React, inspired by comic-style speech bubbles. Easily add fun and engaging tooltips to your web application!

Features

  • Comic-Style Speech Bubbles: Rounded or pointed borders for a playful look.
  • Tail Positioning: Adjustable tail positions (top, bottom, left, right).
  • Themes and Colors: With roughjs, you can effortlessly create unique balloon-shaped tooltips by leveraging its wide range of customizable styles!
    • https://roughjs.com/
  • Hover Interaction: Tooltips appear on hover.
  • HTML Content Support: Supports not only text but also images, links, and other HTML content.
  • Resizable: Fixed size can be set for tooltips.

Installation

Install the package via npm:

npm install react-sketch-tooltip

Usage

Here’s a basic example to get you started:

import React from "react";
import SketchTooltip from "react-sketch-tooltip";
import "react-sketch-tooltip/react-sketch-tooltip.css"; // You must import the CSS file!

const App = () => {
  return (
    <div>
      <SketchTooltip
        content={<div>Here’s a cool tooltip!</div>}
        position="top"
        // Customize the size of the tooltip here!
        size={{
          width: 100,
          height: 20,
          tailWidth: 20,
          tailHeight: 30,
          cornerCurve: 50,
        }}
        // you can customize tooltips
        // using the various styles provided by roughjs!
        styleOptions={{
          roughness: 3,
          stroke: "skyBlue",
          fill: "skyBlue",
          fillStyle: "zigzag",
          strokeWidth: 4,
          hachureGap: 3,
        }}
      >
        <button>Hover me!</button>
      </SketchTooltip>
    </div>
  );
};

export default App;

Props

| Prop | Type | Default | Required | Description | | -------------------- | ----------------------------- | ------- | -------- | ------------------------------------------ | | content | string ReactNode | - | Yes | The content to display inside the tooltip. | | children | ReactNode | - | Yes | The markup element to display the tooltip. | | position | top bottom left right | top | Yes | Position of the tooltip tail. | | size | Object | - | Yes | Tooltip size. | | └ width | number | 100 | No | Width of the tooltip. | | └ height | number | 20 | No | Height of the tooltip. | | └ tailWidth | number | 20 | No | Width of the tooltip's tail. | | └ tailHeight | number | 30 | No | Height of the tooltip's tail. | | └ cornerCurve | number | 50 | No | Radius of the tooltip's corner curve. | | └ leftCanvasMargin | number | 5 | No | Left margin of the tooltip's canvas. | | └ topCanvasMargin | number | 5 | No | Top margin of the tooltip's canvas. | | styleOptions | { [key: string]: unknown } | {} | No | Custom styles for the tooltip. |

Contributing

We welcome contributions to enhance react-sketch-tooltip. If you have any ideas or find a bug, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have questions or need help, feel free to reach out or open an issue on the GitHub repository.