Skip to content

Tooltip ​

Contextual hover/focus information displayed in a floating overlay.

Open in Storybook

Interactive Demo ​

Usage ​

vue
<script setup>
import { Tooltip, Button } from '@yellowcard/b2b-design-system';
</script>

<template>
  <Tooltip content="Click to submit the form" placement="top">
    <Button label="Submit" />
  </Tooltip>
</template>

API Reference ​

Props ​

PropTypeDefaultDescription
content*string—Tooltip text content
placement'top' | 'bottom' | 'left' | 'right''top'Tooltip position
titlestring—Optional title in tooltip
arrowbooleantrueShow arrow pointer
disabledbooleanfalseDisable tooltip
trigger'hover' | 'click' | 'focus''hover'Trigger interaction
delaynumber—Show delay in ms

Slots ​

SlotBindingsDescription
default—The trigger element that shows the tooltip