Usage guidelines outline how the component should and shouldn’t be used in different user interface contexts.
When to use
- For text-based information, from 4 words to 2 sentences
- To show supporting information hidden by default, as it isn’t needed to complete the user’s primary task
When not to use
- For a more subtle display of a short name or title (~1–3 words) that explains visual elements on hover, like an icon-only Button, or reveals the full text of a truncated label (use a title attribute)
- When you need to display richer information, like a title, longer copy, imagery, or links (use a Popover)
- If the information is required to complete the user’s primary task, keep it visible on the page
Best practices
Do use a Tooltip for explaining a visual element on hover (like Task Status) when a few sentences can be helpful as optional supporting information.
Do use a title attribute instead of a Tooltip when displaying a short name or title.
Be careful when a label is mostly visible but is truncated. In this example of a file name, using a title attribute to reveal the full label is more appropriate than a Tooltip. A Tooltip would be far too prominent and adds unnecessary visual noise.
Don't use a Tooltip to repeat a visible label for an active element.
Don't show more than one Tooltip at once.