Skip to main content
  1. Docs
  2. Components
  3. Overlays

Popover

Content on demand, anchored to its trigger: filters, a quick edit, a detail. Not modal.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="dialog">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Filters for the list beside it.
  • A quick edit: rename, reschedule.
  • Detail that would crowd the page.
Not for
  • A decision that stops the pageDialog
  • A short label for a controlTooltip
  • A list of actionsMenu

02

Anatomy

  1. 1popover-popup<div role="dialog">The panel, anchored to its trigger; not modal.
  2. 2popover-title<h2>Names it; without one, aria-label.
  3. 3popover-description<p>A line under the title.

03

Do and don't

Not for decisions
DoA destructive question stops the page: a dialog.
Don'tDelete, asked in a corner that an outside click closes.
Every popover has a name
DoA title, or aria-label when there's no room for one.
Don'tUnnamed content: a dialog nobody can identify.

04

Content

  • The title says what it holds: "Filter members".
  • Its actions end-aligned: Clear, then Apply.
  • Keep it short: a long form belongs in a drawer.
Next — PopoverAPI