search ESC

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 / AttributeDescription
.lp-tooltipBase tooltip container
.lp-tooltip-innerContent wrapper (text + shortcut)
.lp-tooltip-textMain text content
.lp-tooltip-dividerVertical separator between text and shortcut
.lp-tooltip-shortcutShortcut container
.lp-tooltip-kbdIndividual keyboard key
.lp-tooltip-arrowArrow 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--lgSize variants
.lp-tooltip--anim-fade / --anim-slideAnimation modes (default is scale)
.lp-tooltip--no-arrowHide arrow
.lp-tooltip--interactiveEnable pointer events (click content inside)
data-lp-component="tooltip"Auto-init
data-lp-tooltipTooltip text content
data-lp-shortcutKeyboard shortcut (e.g. "Ctrl+S")
data-lp-placementPlacement (one of 12)
data-lp-colorColor name
data-lp-variantsoft | outline (default solid)
data-lp-sizesm | lg
data-lp-animationfade | scale | slide
data-lp-triggerhover | click | focus | manual (space-separated)
data-lp-delay / data-lp-hide-delayShow/hide delays in ms
data-lp-auto-hideAuto-hide after N ms
data-lp-htmlAllow HTML content
data-lp-interactiveAllow pointer events on tooltip
data-lp-offsetDistance from trigger (px)
data-lp-arrowShow/hide arrow ("true"/"false")