Tooltip
A simple popup shown on hover to provide additional context.
When to Use
- To show brief help text on hover
- For icon-only buttons that need labels
- To display extra information without cluttering the UI
Import
Examples
Basic
Placements
Color
API
TooltipProps
title—ReactNode— Tooltip contentplacement—"top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom"— Positiontrigger—"hover" | "focus" | "click"— Trigger mode (default:"hover")open—boolean— Controlled visibilityonOpenChange—(open: boolean) => void— Visibility callbackcolor—string— Background colorarrow—boolean— Show arrow (default:true)overlayClassName—string— Custom overlay CSS classmouseEnterDelay—number— Delay before showing (seconds)mouseLeaveDelay—number— Delay before hiding (seconds)