Tooltip 06
An intent-aware tooltip for dense toolbars that opens with a short delay and stays stable while moving between adjacent triggers.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
Typography: Inter, with a system sans-serif fallback.
About Tooltip 06
Tooltip 06 is a tooltip component in the Tooltip Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated September 13, 2026.
- tooltip
- intent tooltip
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: role tooltip; aria-label, aria-describedby.
- HTML elements used: button, svg.
- Keyboard keys handled: Escape.
- Includes a prefers-reduced-motion rule for its animation.
React + TypeScript + Tailwind CSS
3 files: Tooltip06.jsx, Tooltip06.types.ts, Tooltip06.tailwind.css
- Configurable through 5 props: label, content, icon, autoFocus, className.
- Uses React hooks: useEffect, useId, useRef, useState.
- ARIA in the markup: role tooltip; aria-label, aria-describedby.
- HTML elements used: button, svg.
- Keyboard keys handled: Escape.
- Includes a prefers-reduced-motion rule for its animation.