Tooltip
Short assistive hint shown on hover or focus. Best for icon-only actions and places where inline helper text would be too noisy.
Best for
Import
import { Tooltip } from "@enadhq/enad-react-sdk/client/ui-resolver"When to use it
Use Tooltip when a UI element needs a short explanatory label that should not take up permanent space. It works well for icon-only buttons in toolbars, truncated text that needs a full-length preview, and any affordance where the label would be redundant for most visitors but helpful on hover or keyboard focus.
If the hint needs interactive content (links, buttons, form fields), use Popover instead. Tooltips are display-only and dismiss on mouse leave.
Slot strategy
Tooltip has three parts plus a shared provider:
TooltipProvidersets the delay and skip behavior for all tooltips in its subtree. Place it once near the top of a page or section rather than wrapping each tooltip individually.Tooltipis the root for a single trigger-content pair.TooltipTriggeris the element that activates the hint. UseasChildto avoid adding a wrapper span.TooltipContentis the floating label. It includes a built-in arrow and positions itself automatically.
Behavior and theming guidance
The tooltip renders with the primary background color and a small arrow pointing at the trigger. The sideOffset default is 4px, which keeps the tooltip close without overlapping.
Use delayDuration on the provider to control the hover delay. The SDK default is 0ms (instant), but a small delay like 200ms feels more natural for action bars where accidental hovers are common.
Tooltips animate in with a combined fade and zoom transition. The slide direction matches the side prop: a bottom-side tooltip slides in from the top, and so on. Radix handles collision avoidance, so the tooltip repositions automatically near viewport edges.
Examples
Live examples you can edit directly in the sandbox.
Basic tooltip
Wrap a trigger element to show a short label on hover and focus. The provider sets the delay for all tooltips in its subtree.
Action bar hints
Share a single TooltipProvider across a group of icon-style actions so the delay is consistent and the second tooltip in the group opens immediately.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.