Skip to content

Tooltip ​

Last updated

Demo ​

tooltip/demo.vue

Tooltip uses Reka UI for floating positioning, delay and aria-describedby. Appearance reads tokens.

Props ​

PropDescriptionTypeDefault
contentTooltip textstring—
sideSide / orientationtop | right | bottom | lefttop
delayDelay (ms)number300
disabledDisable the tooltipbooleanfalse
portalToExisting overlay container within the themestring | HTMLElementConfigProvider / body

Id, class, aria-label, data attributes and events forward to the trigger. Icon buttons still need names independent of tooltip content. Use portal-to to keep local theme tooltips beside their trigger's theme.

Slots ​

NameDescription
defaultTrigger element (as-child)
contentCustom tooltip content

Disable tooltips when redundant, for example text segmented controls; enable them in icon only mode.