Skip to content

Tooltip

Displays brief, informative text when a user hovers over or focuses on an element.

First release: 1.0.0 Latest update: July 1, 2025 Current version: 1.0.0

React Angular Vue Svelte HTML

Import

import { PlusTooltip } from '@plusui/react';
import { PlusTooltipComponent } from '@plusui/angular';
import { PlusTooltip } from '@plusui/vue';
import PlusTooltip from '@plusui/svelte';
<script src="https://cdn.jsdelivr.net/npm/@plusui/core"></script>

Package

@plusui/react
@plusui/angular
@plusui/vue
@plusui/svelte
@plusui/core

Docs

Changelog

Tooltip Changelog

Recent changes and updates for the tooltip component

v1.0.0

June 20, 2025
Feat

Added Tooltip component for contextual help

  • Multiple positioning options
  • Custom content support
  • Hover and focus triggers
  • Accessibility with ARIA attributes

The Tooltip component provides brief informational text that appears when a user interacts (hovers, focuses, or clicks) with a target element. It’s commonly used for clarifying icons, providing context, or displaying truncated text.

Tooltip - anatomy

A simple tooltip triggered by hovering over a button.

Save

Show code

Use the orientation prop to control where the tooltip appears relative to the trigger element.

TopBottomLeftRight
Show code

The trigger prop determines how the tooltip is opened.

Hover MeClick Me
Show code

Control the tooltip size with the size prop.

SmallMediumLarge
Show code
Tooltip - layout spacing Tooltip - light & dark mode
  • Keyboard Behavior:
    • When the trigger element receives focus (via Tab), the tooltip appears if the trigger is hover (or click if already clicked).
    • When focus moves away from the trigger, the tooltip hides.
    • If trigger is click, Escape key hides the tooltip when it is visible.
  • Screen Reader:
    • The component uses role="tooltip" on the tooltip container.
    • The trigger element should have aria-describedby pointing to the id of the tooltip container (this is handled automatically by the component setting aria-describedby="tooltip-content" on the trigger).
    • The tooltip content (message prop) provides the accessible description.
  • Required Developer Actions:
    • Ensure the trigger element (passed into the default slot) is inherently focusable (like a button or input) or has tabindex="0".
    • Provide a clear and concise message for the tooltip content.
    • If the trigger element is icon-only or lacks descriptive text, provide an aria-label on the trigger element itself for screen reader users (e.g., <plus-button aria-label="Save">).
NameTypeDefaultDescriptionRequired
size'sm' | 'md' | 'lg''md'Size of the tooltip panel.No
messagestring''The text content displayed inside the tooltip.No
trigger'hover' | 'click''hover'How the tooltip is opened (hover or click).No
orientation'top' | 'bottom' | 'left' | 'right''top'Position relative to the trigger element.No
hideDelaynumber0Delay in milliseconds before hiding the tooltip on hover out.No
NamePayload TypeDescription
plus-tooltip-showCustomEvent<void>Fired when the tooltip is shown.
plus-tooltip-hideCustomEvent<void>Fired when the tooltip is hidden.
NameDescription
(default)The target element that triggers the tooltip.
NameDescription
tooltipThe main tooltip container element.
arrowThe arrow element pointing to the trigger.

Join the Community

Plus UI is built by the community. Join us on our platforms to contribute, get help, and stay up to date.