JollyUI
  1. Docs
  2. components
  3. Tooltip

Tooltip

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

Installation

npx @sly-cli/sly add jolly-ui tooltip

Note: Only the default style can be installed via CLI at the moment

Usage

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

Position