Tooltip
Since 1.4.0Examples
API
Properties
Name
Description and specifications
for
CSS selector for hover trigger element e.g. `for="[data-my-custom-select]"`
Attribute:
forType:
HTMLElement | Promise<HTMLElement> | string | undefinedinteractive
Define if the user can access the tooltip via mouse.
Attribute:
interactiveType:
booleanDefault:
falseplacement
Since 1.5.0
Initial placement of the tooltip.
If the selected placement doesn't have enough space, the tooltip will be repositioned to another location.
Attribute:
placementType:
"bottom" | "left" | "right" | "top"Default:
'top'titleContent
Title of the tooltip
Attribute:
title-contentType:
string | undefinedEvents
No events available for this component.
Slots
Name
Description and specifications
title-content
Content of tooltip title
title-icon
Icon of tooltip title
A11y
Set the aria-describedby attribute on the trigger element to the tooltip id attribute. This allows assistive technologies to establish a logical connection between the trigger and the tooltip.
See examples above.