Skip to content

Tooltip

A tooltip that displays additional information when hovering, clicking, or long-pressing a target element.

Basic Usage

vue
<template>
  <see-tooltip content="This is a tooltip">
    <button>Hover me</button>
  </see-tooltip>
</template>

Props

PropTypeDefaultDescription
contentstring''Tooltip content text
positionstring'bottom'Tooltip position: top, bottom, left, right
triggerstring'hover'Trigger method: hover, click, longpress, manual
showbooleanfalseWhether to show (works with manual trigger)
delaynumber0Delay before showing in ms
maxWidthstring''Max width of tooltip
effectstring'dark'Theme style: dark, light
isDisabledbooleanfalseWhether the tooltip is disabled
isShowArrowbooleantrueWhether to show arrow

Events

EventParametersDescription
onOpen-Triggered when tooltip opens
onClose-Triggered when tooltip closes
update:show(value: boolean)Triggered when show state changes

Liao ICP No. 2025070134