Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

80+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

Loading
Home/Tooltip Component

Tooltip Component

An animated tooltip that follows the cursor or stays anchored to an element, with morphing content, elastic movement, and responsive transitions between controls.

lucide-reactmotiontailwind-merge
DemoDemoDemo

Tune the Real Props

Overview

Tooltip can keep one shared label that moves between controls, resizing to fit each label while the text slides, fades, or rolls in. It can trail the cursor with elastic weight, stretch and tilt with pointer speed, or stay anchored to its trigger.

Use it for controls that need a short explanation but not permanent text, such as icon toolbars, editors, dashboards, and design tools. The label must stay readable and the controls easy to use.


Theme and Interaction Customisation

Set surface style, roundness, side, and offset from the trigger or cursor. Motion options include morphing between triggers, sliding, fading, or rolling content, duration, elastic bounce, stretch and tilt on move, follow speed, entrance animation, and close delay.


Example Production Use Case

A design app toolbar with Share, Edit, Duplicate, and Delete icons can use one shared tooltip that glides between buttons and resizes for each label, with a short close delay to prevent flicker.

A SaaS dashboard can anchor tooltips to compact status icons, explaining what each indicator means without cluttering the layout.

A collapsed navigation rail can show anchored tooltips beside each icon so users identify destinations without expanding the sidebar.


Best Used For

  • Creative and editing toolbars.
  • SaaS dashboard controls and status icons.
  • Developer tools.
  • Productivity applications.
  • Collapsed navigation rails.
  • Design system interfaces.
  • Interactive product interfaces with unfamiliar icons.

Not For

Controls that already have clear visible labels don’t need a tooltip repeating them.

Essential instructions, validation errors, or must-read information should stay visible rather than depending on hover.

Longer or interactive content needs Hover Card, Popover, or Dialog, and touch-first interfaces shouldn’t hide key guidance behind hover.


Performance Budget

Track the pointer without app-wide state updates, measure label size only when it changes, and respond instantly to new triggers. Stop tracking and decorative motion when hidden.


Accessibility and Mobile

Use tooltip semantics with aria-describedby, a named trigger, display on keyboard focus, and Escape to dismiss. Keep it open long enough to read and stable across small pointer gaps. On mobile, offer tap or focus access instead of hover and keep it inside the viewport. With reduced motion, simplify following, morphing, stretch, tilt, and bounce.


Common Mistakes

  • Putting essential information in a tooltip.
  • Placing links or buttons inside it.
  • Showing the previous trigger’s text during fast movement.
  • Overusing stretch and tilt.
  • Letting it clip at viewport edges.
  • Closing it before users can read it.
  • Making guidance hover-only.
  • Using stretch or tilt without Elastic enabled.
  • Ignoring reduced-motion preferences.

Changelog

v1.0.0

Oct 23, 2026
Initial release

API Reference

PropTypeDefaultDescription
themestringvalorantColour palette. The Filled style always uses its primary colour; any theme but Default also tints the Outline style's text and border.
modestringdarkLight or dark version of the palette. Starts dark.
variantstringdefaultFilled background or an outline.
roundedstringmdCorner radius of the tooltip.
followstringanchorThe tooltip trails the cursor, or stays put next to the element.
sidestringtopWhich side of the element or cursor the tooltip sits on.
sideOffsetstring4Gap between the tooltip and what it points at, in Tailwind spacing units.
changeAnimationstringslideWhat happens when you move straight to another element: the text swaps, or the tooltip morphs to the new size.
durationnumber0.35How long the change between elements takes, in seconds. Not used by Swap text.
elasticbooleantrueThe tooltip moves on a spring that can overshoot.
bouncenumber0.1Springiness of the movement. Does nothing with Elastic off and Change animation set to Swap text.
stretchOnMovebooleantrueThe tooltip stretches in the direction it moves. Needs Elastic on.
tiltOnMovebooleantrueThe tooltip leans into the direction it moves. Needs Elastic on.
stiffnessnumber750How tightly the tooltip follows the cursor or glides between elements. Higher is snappier.
appearAnimationstringscaleHow the tooltip appears and disappears.
closeDelaynumber0.1How long the tooltip stays after the pointer leaves, in seconds.

Questions, Answered.

What is Tooltip?

Tooltip is an animated React component that shows contextual information near an element, with cursor following, element anchoring, shared transitions between triggers, and configurable movement.

Can Tooltip follow the mouse cursor?

Yes. Cursor-following mode tracks the pointer, and follow speed sets how quickly it catches up.

What is the Morph animation?

Morph lets the shared tooltip reshape when moving between triggers with different labels, while the text transitions into place.

What does Elastic do?

Elastic adds spring overshoot while following or repositioning and enables optional stretch and tilt on move.

What does Close delay do?

It keeps the tooltip available briefly after the interaction ends, preventing flicker between neighbouring triggers.

Can I place buttons or links inside Tooltip?

No. Tooltips should hold short, non-interactive text. Use a popover or hover card for clickable content.

View MoreView More

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Date Picker Component
@base-ui/reactclass-variance-authoritydate-fns

Date Picker Component

Components

Button Component
lucide-reactmotiontailwind-merge

Button Component

Components

Theme Switch Component
@base-ui/reactclass-variance-authoritygsap

Theme Switch Component

Components

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc