Components · Overlays & Dialogs

Popover

A small floating card attached to a button.

Automated a11y scan passing Element: <div role="dialog">

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Popover · Canonical Spec

When to use it

Do

  • Use it for short content or a few quick controls.
  • Close it when people click outside or press Escape.

Don't

  • Put critical information only in a popover.
  • Use it for plain hints. Use Tooltip instead.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly, following the W3C ARIA Authoring Practices Guide.

Interaction / KeyBehavior & Compliance Requirement
Light Dismiss & CloseDismisses on outside click, Escape key, or .as-popover__close click.
ARIA ExpandedSynchronizes aria-expanded="true|false" on the trigger button.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Card Surface--as-semantic-color-surface-card
Corner Radius--as-radius-lg
Esc
↑↓ navigateEnter openEsc close