OverlayBrowse overlay components
Tooltip
Brief hover label with rotated arrow on every side.
Live preview
Tooltip topTooltip rightTooltip bottom
Usage
Adapters:React stableVue stable
index.html
<span class="lm-tooltip">
<button aria-describedby="tip-1">?</button>
<span class="lm-tooltip-content" id="tip-1">Help text</span>
</span>CSS classes (2)
| Class | Description |
|---|---|
lm-tooltip | Inline-flex anchor |
lm-tooltip-content | Floating content (data-side='top|right|bottom|left') |
React props (2)
| Prop | Type | Default | Description |
|---|---|---|---|
side | top | right | bottom | left | top | — |
delay | number | 300 | — |
Accessibility
- Use aria-describedby to link tooltip id.
- Show on hover AND focus; dismiss on Escape.
Spotted something wrong? Edit this entry on GitHub.