ComponentsOverlay

Tooltip

Tooltip directive provides advisory information for a component. Tooltip is integrated within various PrimeVue components.

IST LHR IST CDG IST FRA
PREVIEW

Tooltip is applied to an element with v-tooltip directive where the value of the directive defines the text of the tooltip.

basic-demo

Position of the tooltip is specified using a modifier. Valid values are top, bottom, right and left. Default position of the tooltip is right.

position-demo

Adding delays to the show and hide events are defined with showDelay and hideDelay options respectively.

delay-demo

Tooltip gets displayed on hover event of its target by default, other option is the focus event to display and blur to hide.

event-demo

Tooltip is hidden when mouse leaves the target element, in cases where tooltip needs to be interacted with, set autoHide to false to change the default behavior.

autohide-demo

Tooltip can use either a plain text or rich HTML content by setting escape to false.

custom-demo

Tooltip is also configurable by passing an object as the directive value.

options-demo

Screen Reader

Tooltip component uses tooltip role and when it becomes visible the generated id of the tooltip is defined as the aria-describedby of the target.

Keyboard Support

KeyFunction
escapeCloses the tooltip when focus is on the target.
Theme Designer