Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationMulti Tooltip

Multi Tooltip

A powerful tooltip component that displays multiple tooltips around a single trigger element. Perfect for complex UI elements that need multiple contextual hints or actions.

Install Dependencies

npx
quickcode-ui add MultiTooltip

Usage

Multi Tooltip Examples

Props

PropTypeDefaultDescription
tooltipsArray<{content: string, position: Position}>-Array of tooltip objects with content and position
gapnumber8Distance in pixels between trigger and tooltips
hideDelaynumber100Delay in milliseconds before hiding tooltips after mouse leave
classNamestring-Additional CSS classes for the trigger container
tooltipClassNamestring-Additional CSS classes applied to all tooltip elements

Position Options

The position property accepts these 8 directional values:

  • "top" - Center above the trigger
  • "top-right" - Top-right corner
  • "right" - Center to the right
  • "bottom-right" - Bottom-right corner
  • "bottom" - Center below the trigger
  • "bottom-left" - Bottom-left corner
  • "left" - Center to the left
  • "top-left" - Top-left corner

Features

  • Multiple Tooltips: Display 2-3 tooltips simultaneously around one trigger
  • 8 Directional Positioning: Comprehensive positioning options for optimal tooltip placement
  • Smart Collision Detection: Automatically adjusts position to keep tooltips visible within viewport
  • Staggered Animations: Each tooltip appears with a subtle delay for polished visual effect
  • Hover Persistence: Tooltips remain visible when hovering over them for interaction
  • Portal Rendering: Tooltips render in document body to avoid z-index issues
  • Responsive Positioning: Dynamically updates position on scroll and resize events
  • Keyboard Accessible: Supports focus and blur events for keyboard navigation
  • Content-Aware Sizing: Automatically adjusts padding and text size based on content length
  • Dark Mode Ready: Full support for light and dark themes using CSS tokens
Last updated on