Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Made by imskyleen
Edit on GitHub

Installation

Usage

<Tooltip>
  <TooltipTrigger>Open tooltip</TooltipTrigger>
  <TooltipContent>
    <p>Tooltip content</p>
  </TooltipContent>
</Tooltip>

API Reference

Tooltip

PropTypeDefault
delayDuration?
number
0

TooltipTrigger

TooltipContent

PropTypeDefault
transition?
Transition
{ type: 'spring', stiffness: 300, damping: 25 }
...props?
HTMLMotionProps<"div">
-

The forceMount and asChild properties are not supported in the TooltipContent component, as it is used for animation.

Credits

Built by Skyleen. The source code is available on GitHub.

Last updated: 10/4/2025