tip-glide

One tooltip. Every direction.

IN MOTIONOne surface, a little momentumLean on · short, long, short
⌜Move across the toolbar
Short, long, short. Try it quickly.
Waiting for an anchorauto placement
Customize
GeometricLiquid
N
0° top · 90° right · 180° bottom
Tab to focus. Escape to dismiss.Drag to find the edges.

Make it yours.

LIVEtoolbar.ts

Configure createTipGlideScope once per app. Attach plain text to each trigger; update() changes it without closing. Destroy each binding with its view and the scope with the app.

The details.

app defaults · text bindingsYour framework

Since 0.5.0, configure the app once and pass fixed or reactive text at each trigger. React and Preact use TipGlideProviderand useTooltip(text). Angular usesprovideTipGlide and [tipGlide]="text". Vue uses a plugin and text directive; Svelte and Solid use their context and action/directive lifecycles. Astro configures its shared layout once. Components share one tooltip and its warm timing. Import tip-glide/style.css once; Astro includes it. Frameworks remain optional peers.

Angular 20, 21 and 22 are supported with tip-glide@0.5.1. The adapter ships Angular 20 partial compilation output. Packed consumer checks cover strict templates, signals, input bindings, SSR imports and cleanup across all three major versions.

Full adapter reference

SSR · live textSince 0.5.0

Providers create an isolated scope per app or request. No tooltip DOM, listeners or animation work starts during server rendering. In Next.js, keep the provider wrapper and hook consumers behind a client boundary; the layout can remain a Server Component. Tooltip descriptions and interaction become available after hydration. Empty text, null or false disables a trigger. Reactive text updates preserve the open tooltip and its accessible description.

boundary: 'root' · alwaysVisibleLocal preview options

Independent local groups accept the core options plus boundary: 'root'to confine the tooltip to the group. alwaysVisible: trueshows the first nonempty trigger on mount and when that trigger changes. It is useful for touch previews; Escape and normal dismissal still work. In Astro, options must be JSON-serializable, so pass a root boundary rather than a DOM element.

Adapter options replace the configuration: omitted fields return to their defaults. The imperative core's update() merges only the supplied fields. Invalid values throw before applying an update.

placement · boundaryWhere it goes

Choose a side or any angle in degrees. 0 is above; 90 is right. Angles turn clockwise, like a compass. At an edge, the surface slides along the boundary and finds room around the trigger. Setboundary: element to stay inside its client box and the visible viewport.

duration · lean · showFuseHow it moves

Glide defaults to 180 ms. Lean adds a small directional tilt; showFuse shows the initial delay on the edge facing the tooltip. Rapid handoffs retarget the current position and size. Keyboard focus is instant and system reduced motion is respected.

openDelay · closeDelay · warmDurationHover timing

The first hover waits 400 ms. Closing waits 120 ms so you can cross a gap or reach the tooltip. For 600 ms after closing, another trigger skips the opening delay. Set these values in milliseconds; keyboard focus opens immediately. motion: 'system' follows reduced motion preferences, while 'reduced' disables spatial motion explicitly.

arrow · arrowBlend · enter · exitThe finishing touches

The pointer is part of the same rounded contour. Arrow is optional; arrowBlend controls its geometric-to-liquid join. Enter and exit accept'scale' | 'fade' | 'slide' | 'none', or{ keyframes, duration, easing }. Custom motion runs on a separate layer, so it can coexist with gliding and resizing.

--tg-max-width · --tg-max-heightText & styling

Text wraps, including unbroken words. Tall descriptions scroll within the tooltip. Theme its background, color, radius, font, padding, shadow, and size with CSS variables on a class supplied through className. Descriptions stay plain text.

add · setContent · show · hide · destroyCore control

createTipGlide(root, options) registers the initial triggers. Use add(element, text) for later additions or text changes; it returns an unregister function. Re-registering dismisses that trigger's current tooltip. UsesetContent(element, text) to update its text in place. show(element) and hide()control visibility. update(options) merges settings andreposition() remeasures after your layout changes. Call destroy() when the owning view is removed. Framework adapters handle registration and destruction for you.

touch · hideOnDragSince 0.4.0

The core supports touch: "tap" for dedicated information buttons. Tap again or touch outside to close. Dragging closes ordinary tooltips; Position Lab uses hideOnDrag: falseto keep its geometric path and connected arrow. These options are separate from this website's always-visible mobile preview.

tip-glide/native · tip-glide/elementSince 0.4.0

The native entry uses CSS Anchor Positioning and the Popover API for four-sided, content-sized tooltips with opacity fades. Importtip-glide/native.css with it and checksupportsNativeTipGlide() before creating a group. Use the full entry for geometric glide, liquid arrows and lean. The Web Component entry shares the same binding as the framework adapters. Both are documented in the source repository.

tip-glide/baseA smaller entry

Import createTipGlide from tip-glide/basewith tip-glide/base.css for basic shared tooltips. It supports top, right, bottom and left placement, with the same core lifecycle. Use the full entry and its adapters for 360° placement, liquid arrows, lean, fuse and custom entrance or exit animations.