Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Tooltip

A tooltip component with smart placement and hover or click triggers.

vu-tooltip · @velkin/react/tooltip

Copy page

Import

React
npm i @velkin/react

import { VuTooltip } from "@velkin/react/tooltip";

Examples

API

Props

PropTypeDefaultDescription
openbooleanfalseWhether the tooltip is visible.
placementVuTooltipPlacement"top"Preferred side before collision flip.
alignVuTooltipAlign"center"Alignment along the trigger edge.
triggerVuTooltipTrigger"hover"`hover`, `click`, or `both`.
labelstring""Plain-text fallback when the `tooltip` slot is empty.
variantVuTooltipVariant"elevated"Floating surface recipe (`elevated`, `outline`, `soft`).
toneVuTooltipTone"normal"Neutral overlay weight.
sizeVuTooltipSize"md"Padding and type scale.
radiusVuTooltipRadius"md"Corner preset (`sm`/`md`/`lg`; Role C′ omits `none`/`full`).
arrowbooleanfalseDraws a placement arrow on the bubble.
interactivebooleanfalseAllows pointer interaction with tooltip content.
noAutoTriggerbooleanfalseDisables hover/click/focus auto triggers; use methods only.
delaynumber—Hover/focus dwell time (ms) before open; omit for `--vu-tooltip-delay` (1500ms).
closeDelaynumber—Ms after pointer/focus leaves before close; omit for `--vu-tooltip-close-delay`.
offsetnumber6Gap between trigger and bubble in px.
blockbooleanfalseStretches the trigger to the container width.

Events

EventDetailDescription
vu-openCustomEvent<void>When the tooltip begins opening.
vu-closeCustomEvent<void>When the tooltip begins closing.
vu-open-changeVuTooltipOpenChangeDetailWhen `open` changes (including via methods).

Slots

SlotDescription
—- Trigger content (button, icon, text).
tooltipTooltip body; when empty, the `label` prop is shown.

CSS parts

PartDescription
triggerWrapper around the default slot.
surfacePositioned popover shell (`popover="manual"`).
contentBubble surface with padding and optional arrow.

Methods

MethodDescription
show- Sets `open` to true.
hide- Sets `open` to false (immediate; ignores `closeDelay`).
toggle- Toggles `open`.

Types

NameDefinition
VuTooltipAlign
"start" | "center" | "end"
VuTooltipOpenChangeDetail
{ open: boolean; }
VuTooltipPlacement
"top" | "bottom" | "left" | "right" | "auto"
VuTooltipRadius
"sm" | "md" | "lg"
VuTooltipSize
"sm" | "md" | "lg"
VuTooltipTone
"subtle" | "normal" | "strong"
VuTooltipTrigger
"both" | "click" | "hover"
VuTooltipVariant
"outline" | "elevated" | "soft"

Related

Feedback

  • AlertAn alert component with intent colors, variants, and optional dismiss.
  • DialogA dialog component with region slots, focus trap, and backdrop.
  • DrawerA drawer component with slide-in panel, backdrop, and focus trap.
  • NotificationA notification component that renders the toast viewport.
  • OverlayAn overlay component with backdrop and centered content slot.
  • PopoverA popover component with smart placement and a trigger slot.

Guides

  • AccessibilityLabels and overlays
  • AppearanceStatus colors

Browse

  • Previous: SpinnerEarlier in the sidebar
  • Next: TutorialLater in the sidebar
  • All componentsBrowse the full index