Nativ ui
Documentation

Tooltips

Contextual text overlays that appear on hover or focus to provide additional information.

Tooltip Variants

Default

A simple tooltip that appears on hover.

Default tooltip

With Arrow

Tooltip with a visible arrow pointing to the trigger element.

With arrow

Light

Light-themed tooltip for dark backgrounds.

Light tooltip

Positions

Top / Bottom / Left / Right

Tooltips can be positioned on any side of the trigger.

Top

Bottom

Left

Right

Animated

Scale + Fade

Tooltip with a scale and fade entrance animation.

Animated tooltip

Slide Up

Tooltip that slides up from below its resting position.

Slide up

With Delay

Delayed Tooltip

Uses group/tooltip and transition-delay to prevent flicker on quick mouse movements.

Delayed tooltip

Utility Classes Reference

ClassPurpose
group relativeContainer that triggers hover state
pointer-events-nonePrevents tooltip from blocking clicks
opacity-0 group-hover:opacity-100Show/hide on hover
transition-opacitySmooth fade animation
transition-allAnimate position + opacity
delay-300300ms delay before showing
scale-95 group-hover:scale-100Scale entrance effect
-top-10 left-1/2 -translate-x-1/2Top-center positioning

Best Practices

  1. Keep text short - Tooltips should be 1-5 words, not paragraphs
  2. Don't hide critical info - Tooltips are supplementary, not essential
  3. Consistent positioning - Use the same position for tooltips in a group
  4. Add delay for dense UIs - Prevents tooltip flicker when moving between elements
  5. Accessible triggers - Use <button> or focusable elements as triggers
  6. Mobile fallback - Tooltips rely on hover; provide alternatives on touch devices