Tooltip
Tooltips display additional context on hover or focus.
Overview
The catnip-tooltip component wraps content and shows a tooltip on hover/focus by default, or on click when trigger="click". Use for short hints and labels. The bubble renders inside the component's shadow root and opens in the top layer as a popover, so overflow on an ancestor doesn't clip it and it shows above modal Dialog / Drawer content. Your content stays where you put it and is slotted in, so your styles keep applying to it.
Live example
Use the Configuration panel for placement, alignment, size, trigger, delays, and open. m is the compact tooltip and l the standard one; below a 768px viewport each uses its mobile variant (Sizes). In click mode the tooltip closes when you press outside the tooltip’s anchor and floating content.
If you control open from a Vue 3 parent with :open, read Controlling open from Vue — reactive false → null can be blocked by a Vue runtime quirk; the page links the upstream GitHub issue and the recommended ref workaround.
Guidelines
Keep tooltip copy short and non-essential — if users need the information to complete a task, surface it in the main UI instead. Prefer a popover or dialog when the content is long or interactive.
With a custom anchor, describe it yourself: wrap the content in an element with an id and point the anchor's aria-describedby at it. Accessibility has an example and explains Escape inside a Dialog or Drawer.