← Inventory
Tooltip
Root component for a tooltip. Wraps TooltipProvider automatically.
Usage
@desk/ui/components/tooltip
<Tooltip>
<TooltipTrigger asChild>
<Button
aria-label="Copy hex"
emphasis="soft"
icon={Copy}
size="icon-base"
tone="neutral"
/>
</TooltipTrigger>
<TooltipContent>Copy hex · #E8E4DA</TooltipContent>
</Tooltip>Best practices
Keep
TooltipContenta short, non-interactive label — no buttons or links inside; for rich or actionable hover content useHoverCard.The trigger must be genuinely focusable (a button / link, or
asChildonto one) or keyboard and AT users never see the tip.Share one
TooltipProviderto tunedelayDuration/ skip-delay for a group;Tooltipwraps its own provider, so you only need it for grouping.
Props
Also exports
- component
Tooltip - component
TooltipContent - component
TooltipProvider - component
TooltipTrigger
Composition
Used by