structyl

Tooltip

stable

A popup that displays information related to an element when it receives keyboard focus or hover.

Basic usage

Examples

Delayed open

Control open/close delays at the Provider level to reduce visual noise.

Icon toolbar labels

Wrap icon-only controls with Tooltip so the command has an accessible visible hint.

Semantic variants

Tooltip supports themed color variants for contextual hints.

Features

  • Opens on hover and on focus.
  • Closes on Esc.
  • Provider coordinates delay across multiple tooltips.
  • Customize side, alignment, offsets, collision handling.

Installation

bash
pnpm dlx structyl add tooltip

API Reference

Tooltip API reference

Full props, types, defaults, and all 8 parts.

View API

Keyboard interactions

KeyDescription
EscCloses the tooltip.
Tooltip | structyl