Getting StartedInstall and bootstrap headless foundations 4
LayoutHeadless structural primitives for expandable and container patterns 6
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
FormHeadless input and selection contracts 17
UtilityReusable action, identity, and clipboard behavior 6
NavigationHeadless trails, trees, menus, and command surfaces 7

API reference

Headless tooltip is built from one root directive plus two slot directives. The root owns open delays, floating placement, and dismissal behavior.

Root directive

Directive / APITypeDescription
tngTooltipdirectiveRegisters the tooltip interaction layer, trigger, and floating content as one behavior unit.
side'top' | 'right' | 'bottom' | 'left'Requested placement side. The runtime may flip when space is constrained.
openDelay, closeDelaynumberDelay in milliseconds before the tooltip opens or closes.
defaultOpenbooleanInitial uncontrolled state.
openboolean | undefinedOptional controlled open state when you want the owner to drive visibility.
disabledbooleanDisables hover and focus interactions and forces the tooltip closed.
openChangebooleanEmits whenever root-managed open state changes.

Slot directives

DirectivePurposeKey inputs / reflected attrs
tngTooltipTriggerApplies trigger semantics, hover/focus listeners, aria-describedby, and state hooks.open, disabled, describedBy, data-state
tngTooltipContentApplies tooltip role, generated or explicit ID, side hooks, hidden state, and root-owned coordinates.id, open, side, data-side, [hidden]

Behavior and events

  • When used under tngTooltip, the content gets fixed-position left and top styles from the runtime.
  • The root uses JavaScript positioning with viewport collision handling and side flipping.
  • Escape, outside pointer, blur, and mouseleave all close a root-managed tooltip.
  • Tooltip content stays presentational only. Keep actions and focusable controls in popovers, not tooltips.