Skip to content

Overlays

Popover

Also calledfloating panelflyoutinfo bubble

A small floating panel anchored to the element that opened it. The rest of the page stays usable and there is no dimmed backdrop.

How people describe it

  • “small box that appears next to a button when you click it”
  • “floating card with an arrow pointing at its trigger”
  • “little panel with no dark background”

Good for

  • Extra info or options tied to one button
  • Quick settings or filters
  • Mini forms such as a rename field

Don’t mix it up with

  • Centered, blocks the page, and has a dimmed backdrop.

  • Slides in from a screen edge instead of sitting next to its trigger.

What your library calls it

LIBRARYCALLS IT
shadcn/uiPopover
MUIPopover (or Popper)
Chakra UIPopover
MantinePopover
Radix UIPopover

Accessibility checklist

  • Set aria-expanded on the trigger
  • Close on Esc and on outside click
  • Keep the focus order logical

Try it

The rest of the page stays usable.

Open it, then click elsewhere or press Esc.

Prompt

Add a popover anchored to this button. Close on outside click and Esc.

~18 estimated prompt tokensDetailed: ~51 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<button popovertarget="info">More info</button>
<div id="info" popover>Anchored help text goes here.</div>