Components

Tooltip

A popup that reveals information when hovering over an element.

Usage

Use the default slot to define the Tooltip trigger and, optionally, the content slot to set its content.

Arrow

Use the arrow prop to display an arrow on the popup.

<template>
  <MeTooltip
    text="I'm a tooltip!"
    arrow
  >
    <UButton label="Hover me" />
  </MeTooltip>
</template>

Text

Use the text prop to set the content of the Tooltip.

<template>
  <MeTooltip
    arrow
    text="I'm a tooltip"
  >
    <UButton label="Hover me" />
  </MeTooltip>
</template>

Side

Use the side prop to set the positioning of the Tooltip.

<template>
  <MeTooltip
    text="I'm a tooltip!"
    side="bottom"
    arrow
  >
    <UButton label="Hover me" />
  </MeTooltip>
</template>

Disabled

Use the disabled to disable the Tooltip.

<template>
  <MeTooltip
    text="I'm a tooltip!"
    side="bottom"
    arrow
    disabled
  >
    <UButton label="Hover me" />
  </MeTooltip>
</template>

API

Props

PropDefaultType
arrowfalseboolean
Displays an arrow on the Tooltip.
disabledfalseboolean
Disabled the Tooltip.
responsivefalseboolean
The tooltip is only visible when the target is truncated.
side'top''top' | 'right' | 'bottom' | 'left'
The preferred side of the trigger to render against.
textstring
Tooltip content.

Slots

DefaultType
default
content