Tooltips
Feature-rich tooltips with 12 placements, color variants, sizes, animations, keyboard shortcuts, HTML content, and programmatic control.
Basic Positions
Start / End Alignment
Each side has -start and -end variants that shift the arrow toward the beginning or end of the trigger.
Solid Colors
Soft Colors
Add data-lp-variant="soft" for soft/pastel backgrounds.
Outline Colors
Add data-lp-variant="outline" for bordered transparent tooltips.
Sizes
Animations
Three animation modes: fade, scale (default), slide.
Keyboard Shortcuts
Display keyboard shortcuts with data-lp-shortcut. Symbols auto-adapt to Mac (⌘, ⇧, ⌥) or Windows (Ctrl, Shift, Alt).
Shortcut-only (no text):
HTML Content Tooltips
Enable rich HTML inside tooltips with data-lp-html="true". Build mini-cards, status indicators, dashboards, code previews and more — anything HTML can render fits inside a tooltip.
Live System Indicators
Profile & Author Cards
Pricing & Plan Details
Code & Color Previews
Mini Dashboards
Inline Markup & Icons
Triggers
Supported triggers: hover (default), click, focus, manual. Combine with space: hover focus.
JavaScript API
Programmatic control of tooltips. Try the buttons below.
Event log:
CSS Reference
| Class / Attribute | Description |
|---|---|
.lp-tooltip | Base tooltip container |
.lp-tooltip-inner | Content wrapper (text + shortcut) |
.lp-tooltip-text | Main text content |
.lp-tooltip-divider | Vertical separator between text and shortcut |
.lp-tooltip-shortcut | Shortcut container |
.lp-tooltip-kbd | Individual keyboard key |
.lp-tooltip-arrow | Arrow pointer |
.lp-tooltip--{placement} | 12 placements: top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end |
.lp-tooltip--{color} | Solid color: primary, secondary, success, danger, warning, info, dark, light |
.lp-tooltip--soft-{color} | Soft color variant (6 colors) |
.lp-tooltip--outline-{color} | Outline color variant (6 colors) |
.lp-tooltip--sm / .lp-tooltip--lg | Size variants |
.lp-tooltip--anim-fade / --anim-slide | Animation modes (default is scale) |
.lp-tooltip--no-arrow | Hide arrow |
.lp-tooltip--interactive | Enable pointer events (click content inside) |
data-lp-component="tooltip" | Auto-init |
data-lp-tooltip | Tooltip text content |
data-lp-shortcut | Keyboard shortcut (e.g. "Ctrl+S") |
data-lp-placement | Placement (one of 12) |
data-lp-color | Color name |
data-lp-variant | soft | outline (default solid) |
data-lp-size | sm | lg |
data-lp-animation | fade | scale | slide |
data-lp-trigger | hover | click | focus | manual (space-separated) |
data-lp-delay / data-lp-hide-delay | Show/hide delays in ms |
data-lp-auto-hide | Auto-hide after N ms |
data-lp-html | Allow HTML content |
data-lp-interactive | Allow pointer events on tooltip |
data-lp-offset | Distance from trigger (px) |
data-lp-arrow | Show/hide arrow ("true"/"false") |