1. Docs
  2. Tooltip

Tooltip

A tooltip displays a description of an element on hover or focus.

Installation

Install the following dependencies:

Copy and paste the following code into your project.

Loading...

Update the import paths to match your project setup.

Usage

import { Tooltip, TooltipTrigger } from "@/components/ui/tooltip"
<TooltipTrigger>
  <Button>Hover</Button>
  <Tooltip>
    <p>Add to library</p>
  </Tooltip>
</TooltipTrigger>

Position