# reacttooltip/react-tooltip

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/reacttooltip-react-tooltip).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

3,826 stars · 529 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/ReactTooltip/react-tooltip
- Homepage: https://react-tooltip.com/
- awesome-repositories: https://awesome-repositories.com/repository/reacttooltip-react-tooltip.md

## Topics

`javascript` `react` `react18` `tooltip` `typescript`

## Description

React Tooltip is a React library for adding tooltips to interface elements. A tooltip appears next to an anchor element when a user hovers over it or focuses it, and its position is calculated automatically so it stays visible near the edges of the viewport. Tooltips can carry custom content, including styled text or markup.

Tooltips are wired up declaratively. Instead of wrapping each element in a component, you add data attributes to any element that match a tooltip's id and define its content. Visibility follows hover, focus and blur events by default, and an external open flag lets an app take over control when needed. The tooltip renders as a separate floating layer outside the anchor's container, so parent clipping and stacking contexts do not cut it off.

The library is built to work in server-rendered React apps. The interactive tooltip runs inside a client-side boundary while the server outputs only plain anchor markup, which keeps it compatible with server components. Base styles are injected when the component loads, so no separate stylesheet import is needed. Because tooltips show on focus as well as hover, keyboard and screen reader users get the same context that mouse users do.

## Tags

### User Interface & Experience

- [Tooltips](https://awesome-repositories.com/f/user-interface-experience/content-display-components/tooltips.md) — Provides a React tooltip library whose customizable tooltips attach to anchor elements and appear on hover or focus. ([source](https://github.com/reacttooltip/react-tooltip#readme))
- [Informative Tooltips](https://awesome-repositories.com/f/user-interface-experience/styled-properties/popup-styling/contextual-popups/informative-tooltips.md) — Adds small hover or focus popups to React interface elements that give short explanations, hints or labels without cluttering the screen.
- [Custom Tooltip Components](https://awesome-repositories.com/f/user-interface-experience/custom-tooltip-components.md) — Defines tooltips through plain data attributes carrying the tooltip id and content, avoiding a custom wrapper component for each use.
- [Anchor Attachments](https://awesome-repositories.com/f/user-interface-experience/interactive-ui-elements/interactive-tooltips/anchor-attachments.md) — Attaches tooltips to any element by matching data attributes on the anchor against a tooltip id, with no wrapper components.
- [Tooltip Positioning Engines](https://awesome-repositories.com/f/user-interface-experience/interactive-ui-elements/interactive-tooltips/anchor-attachments/ui-tooltips/tooltip-positioning-engines.md) — Measures anchor and viewport at runtime, then places the tooltip beside the anchor and flips or shifts it to stay visible.
- [Interface Tooltips](https://awesome-repositories.com/f/user-interface-experience/interface-tooltips.md) — Wires up tooltips by tagging elements with simple data attributes instead of writing event handling code.
- [Positioned Popovers](https://awesome-repositories.com/f/user-interface-experience/overlay-components/popover-overlays/positioned-popovers.md) — Shows a small overlay next to an element on hover or focus with automatically handled positioning relative to the trigger.
