Show design guidelines
Framework HTML React Angular
Slotted tooltip content Hover me
A tooltip component that displays contextual information when users hover over or focus on an element.
The tooltip automatically positions itself to avoid viewport boundaries and can be configured with various placement options.
content
Attribute contentType stringDefault undefinedRequired falseDescription Text content for the tooltip. This prop can be used as an alternative to or in combination with the tooltip-content slot.
placement
Attribute placementType "bottom" | "bottom-start" | "left" | "left-start" | "right" | "right-start" | "top" | "top-start"Default undefinedRequired falseDescription Position defaults to undefined which automatically picks an unobstructed direction
position
Attribute positionType "absolute" | "fixed"Default 'absolute'Required falseDescription Use ‘fixed’ to break a tooltip out of a positioned container
There are no events available for this component
There are no public methods available for this component
Name Description Content in the default slot is the opener for the tooltip. This is the element that triggers the tooltip display. tooltip-contentOptional slot if rich content is needed for the tooltip content for the tooltip.