A Callout
that display after the mouse hovers over the reference element.
HTMLDivElement props are included.
Callout
props are included.
/** When true, the tooltip is disabled and will not be shown. */
export let disabled = false;
/** The duration of mouse hover before showing the tooltip. */
export let hoverDelayMilliseconds: number = 1000;
HTMLDivElement events are included.
The tooltip is anchored to a sibling element that appears directly after the default slot content.
<slot {disabled} {hoverDelayMilliseconds} {open} {variant} />
<!-- hidden anchor point -->
<div class="sterling-tooltip-origin" />
<Callout>
<slot name="tip" {placement} {variant} />
</Callout>