Components › Overlays

Tooltip

A short label on hover or focus, with an optional key hint. Wrap your app in TooltipProvider.

Installation

npx plankui@latest add tooltip

Usage

import { Tooltip } from "@/components/ui/tooltip";

<Tooltip content="Bold" shortcut="⌘B">
  <Button size="icon">B</Button>
</Tooltip>

API reference

PropTypeDefaultDescription
contentReactNoderequiredThe label.
shortcutReactNodeKey hint after the label.
side"top" | "right" | "bottom" | "left""top"Preferred side.

View the source on GitHub