Tooltip

Last updated Feb 13, 2026

Tooltip is a lightweight message overlay that provides additional or contextual information about an element on the screen. It appears when users hover or focus on a target element, such as an icon or underlined text. For advanced use cases, the FloatingTooltip export can be used to apply Tooltip styles to more complex or custom interactions.

Anatomy of a tooltip
  1. Tooltip container : the surface that holds the tooltip message and ensures proper spacing and contrast.
  2. Message : the brief explanatory text providing additional information or context.
  3. Trigger element : the element that reveals the tooltip, such as an icon, button, or underlined text.

Props

PropTypeRequiredDefaultDescription
triggerReactElement<any, string | JSXElementConstructor<any>> | undefinedfalse-Element that will trigger the tooltip. A ref will be set.
iconTriggerReactElement<any, string | JSXElementConstructor<any>> | undefinedfalse-Icon that will trigger the tooltip. A wrapper div will be set.
classNamestring | undefinedfalse--
contentAlignmentenumfalse--
hideArrowboolean | undefinedfalse-Optionally hide tooltip arrow.
disabledboolean | undefinedfalsefalseDisabling will prevent tooltip from rendering on the trigger
portalboolean | undefinedfalsetrueRender in a portal. Disable to render adjacent to trigger for rendering within elements such as modals
portalPropsTooltipPortalProps | undefinedfalse-Props applied to Radix UI Portal component
interactiveboolean | undefinedfalsetrueDetermines if the tooltip closes when the mouse hovers into the tooltip content area
zIndexnumber | undefinedfalse10Override the zIndex in case the tooltip is used in situations where the content is already elevated
maxWidthstring | undefinedfalse-Max width of the contents in the tooltip
triggerPropsTooltipTriggerProps | undefinedfalse-Props to apply to Tooltip.Trigger within
sizeenumfalsemdSize of the tooltip. Defaults to ‘md’.
asChildboolean | undefinedfalse--
  • To provide short, supplemental information about a control, icon, or label.
  • To define or clarify an unfamiliar term or abbreviation.
  • To describe the purpose or outcome of an action when the interface lacks space for inline text.
  • To offer lightweight guidance without disrupting the workflow.
  • Use text or helper text for persistent explanations in forms.
  • Use Modals for longer, task-related guidance that requires focus.
  • Avoid using Tooltip for critical information users must always see.

Do

  • Use concise, plain language in tooltip messages.
  • Ensure tooltip text is readable and fits within the container without wrapping awkwardly.
  • Trigger tooltips with hover or focus for accessibility.
  • Use underlined text to indicate terms or phrases that show a tooltip on hover.
  • Keep tooltip content visible long enough for users to read comfortably.

Don't

  • Place interactive elements (buttons, links) inside tooltips.
  • Display tooltips for essential instructions that users need to complete a task.
  • Use tooltips on touch devices where hover behavior doesn’t exist.
  • Overuse tooltips—too many can clutter the interface.
  • Ensure tooltips appear on both hover and focus for keyboard and assistive technology users.
  • The tooltip message should be accessible to screen readers using aria-describedby on the trigger element.
  • Keep focus on the trigger element when the tooltip is visible; tooltips should not capture keyboard focus.
  • Ensure the tooltip appears close to its trigger without obscuring it.
  • Dismiss tooltips automatically when focus or hover leaves the trigger.
  • Keep tooltip text short and scannable, ideally one sentence.
  • Use sentence case and plain, descriptive language.
  • Avoid instructions like “click here” or repeating obvious information.
  • Do not include links, buttons, or complex formatting.
  • Use tooltips only for supplementary or clarifying information—never for critical content.