❤️ Support our project - Your donation helps us continue developing awesome tools!


Docs
Tooltip

Tooltip

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

A tooltip component.

Installation

npx nyxb@latest add tooltip

Usage

import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from "~/components/ui/tooltip"
<TooltipProvider>
  <Tooltip>
    <TooltipTrigger>Hover</TooltipTrigger>
    <TooltipContent>
      <p>Add to library</p>
    </TooltipContent>
  </Tooltip>
</TooltipProvider>

Examples

Primary

A tooltip component.

Secondary

A tooltip secondary component.

Outline

A tooltip outline component.

Tooltip with Toggle

A tooltip with Toggle component.