Skip to content

<XrTooltip> ​

A hint shown while a ray, a fingertip or the mouse hovers what it wraps.

Usage ​

vue
<XrTooltip text="Switch light / dark">
  <XrButton variant="ghost">Mode</XrButton>
</XrTooltip>

API ​

Props ​

PropTypeDefaultDescription
uiRecord<string, unknown>{}Escape hatch: raw uikit (@pmndrs/uikit) properties, merged last.
disabledbooleanNever show it (and hide it if shown).
partsPartial<Record<"label" | "bubble", Record<string, unknown>>>Raw uikit properties per inner part, merged after the defaults: bubble, label (its text).
placement"top" | "bottom"'top'Show it above (top) or below (bottom) what it wraps.
delaynumber400Hover time (ms) before it shows, so sweeping a ray across UI does not flash hints.
text *stringThe hint. Short: one line, no wrapping.

MIT License