1. Overlays
  2. Tooltip


Tailwind CSS Tooltip

A tooltip is a floating, non-actionable label used to explain a user interface element or feature.

Requires JS

Note that this component requires the use of our Tooltip plugin, else you can skip this message if you are already using Preline UI as a bundle.

Purpose of content

Tooltip are meant to be exactly that, a hint or tip on what a tool or other interaction does. They are meant to clarify or help you use the content that they hover over, not add additional content:

Image Description

Since tooltip are only meant to tell the purpose of an element they should be short and to the point "Click X to do X" or "User post count"


Tooltip are typically only visible on hover, for that reason if you need to be able to read the content while interacting with other parts of the page then a tooltip will not work.


If you want to give a small few word hint on how or what an element on the page does use a tooltip.

Although it should be noted due to accessibility problems, potential SEO issues, and lack of discovery of the tooltip, it's not recommended unless you absolutely need it.


Hover over the buttons below to see the four tooltip directions: top, right, bottom, and left.