Components

Tooltip

A small label that springs out of its anchor on hover or keyboard focus, flipping to stay on screen.

Paste it into ChatGPT, Claude, Cursor or v0.
placement
delay300

Usage

React
import { Tooltip } from '@vizzele/react';

<Tooltip content="Copy to clipboard">
  <button aria-label="Copy">…</button>
</Tooltip>

Props

PropTypeDefaultDescription
contentReactNode—Tooltip text.
placement'top' | 'bottom' | 'left' | 'right''top'Preferred side (flips if needed).
delaynumber350Hover delay (ms). Focus shows instantly.

Accessibility

  • role="tooltip" referenced by aria-describedby; shows on focus, hides on Escape and blur.