StealThis .dev

Popover

Floating popover panels that position themselves relative to a trigger — supports top, bottom, left, right placement with arrow pointer.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Popover

Non-modal floating panels anchored to a trigger element — richer than a tooltip.

Placements

top · bottom · left · right

Each placement has a CSS arrow pointer via ::before border trick.

Features

  • Toggle on trigger click
  • Close via built-in × button, outside click, or Escape
  • Rich content: title + body + optional actions
  • Smooth fade-in transition