A lightweight popup that shows additional information on hover or focus. — <cs-tooltip>
<cs-tooltip content="Helpful information" position="top">
<cs-button>Hover me</cs-button>
</cs-tooltip>
class-namestringAdditional CSS class for the tooltip container.
get-track() => null | HTMLElement | SVGElementrequiredFunction that returns the element the tooltip points to. Can return null if the element is not yet mounted or available.
positionTooltipProps.Position
default: 'top'Determines where the tooltip is displayed when opened, relative to the trigger. If the tooltip doesn't have enough space to open in this direction, it automatically chooses a better direction based on available space.
contentContent to display in the tooltip.
escapeCustomEvent<void>Callback fired when the user presses the Escape key while the tooltip is visible.