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
| LIBRARY | CALLS IT |
|---|---|
| shadcn/ui | Popover |
| MUI | Popover (or Popper) |
| Chakra UI | Popover |
| Mantine | Popover |
| Radix UI | Popover |
Accessibility checklist
- Set aria-expanded on the trigger
- Close on Esc and on outside click
- Keep the focus order logical
Try it
A little more detail
Stays close to its button. Click outside or press Esc to dismiss.
The rest of the page stays usable.
Open it, then click elsewhere or press Esc.
Settings
Colors
Pick, eyedrop, or generate a color, then choose Custom under Color above.
Passes AA · 6.9:1
Text color is chosen for you.
Start
End
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>