Skip to content

1.0.1

Choose a tag to compare

@extramoose extramoose released this 13 Sep 23:42
· 10 commits to main since this release

A tooltip that rides the cursor. Follows the pointer, flips before it runs off the edge, and stays out of the way. Vanilla JS, no dependencies, 4.8 kB gzipped.

  • Springs out of the corner nearest the cursor, collapses back into it on the way out
  • Walks from one trigger to the next without blinking
  • Long press on touch, above the finger, and a plain tap is never touched
  • Keyboard focus and Escape, aria-describedby wiring, reduced motion honoured
  • data-tip-key shortcut chips, data-tip-overflow for clipped cells, live text
  • One theme that reads the page, nineteen custom properties if you want your own
  • place() is pure and unit-tested; the DOM suite runs in Playwright

Demo: https://tooltip.hah.to/ · Docs: https://tooltip.hah.to/docs/

1.0.0 was published from an earlier state of this tree, before the history was collapsed, and has no tag here. 1.0.1 is the first version this repository can vouch for; releases from here on are published by GitHub Actions with provenance.