Skip to content

KTooltip

示例

Hover to show tooltip

Tooltip that displays informational text on hover with configurable placement and delay.

Props

NameTypeDefaultDescription
contentstring''Text content to display in the tooltip.
placement'top' | 'bottom' | 'left' | 'right''top'Placement of the tooltip relative to the trigger element.
delaynumber200Delay in milliseconds before the tooltip appears on hover.

Slots

NameDescription
defaultThe trigger element that the tooltip is anchored to.

Basic Usage

vue
<script setup>
import { KTooltip } from '@kK-2004/ui-component'
</script>

<template>
  <KTooltip content="Helpful tip" placement="top" :delay="200">
    <KButton>Hover me</KButton>
  </KTooltip>
</template>