# Popover

> A small floating surface anchored to what opened it.

- **Level**: molecule · **Status**: stable · **Role**: feedback
- **Import**: `import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "@rrios-forge/ui/molecules/popover";`
- **Source**: `packages/ui/src/molecules/popover`

Floating panel that appears on click / keyboard activation. Composes `@radix-ui/react-popover` so the ARIA contract (`role="dialog"`, focus return, escape-to-close, outside-click-to-close, portal isolation) is right by construction. Use Popover for short, contained content; reach for Dialog for richer modal interactions.

## Use it for

- Tooltip / popover / contextual menu → `Tooltip` / `Popover` / `DropdownMenu`

## Axes

| Axis | Part | Values | Default | Meaning |
|---|---|---|---|---|
| `size` | — | `sm` `md` `lg` | `md` | Ergonomic scale, in three families (control, text, container). |

## Stories

- [Playground](/?path=/story/components-molecules-popover--playground) · frame: `/iframe.html?id=components-molecules-popover--playground&viewMode=story`
- [Sizes](/?path=/story/components-molecules-popover--sizes) · frame: `/iframe.html?id=components-molecules-popover--sizes&viewMode=story`
- [With form](/?path=/story/components-molecules-popover--with-form) · frame: `/iframe.html?id=components-molecules-popover--with-form&viewMode=story`

## Decisions that name it

- ADR-007 — Material highlight on raised surfaces
- ADR-015 — Drawer molecule on top of Radix Dialog
- ADR-016 — NotificationCenter v2: Popover → Drawer + Provider/Hooks
- ADR-024 — `LocaleSelector` is a new molecule, not an extension of `Combobox`

## Always

- Tokens only (R04); variants are semantic axes, never appearance (R02).
- Typography and actions are Poesía atoms, never raw HTML with utilities.
- Vibrant panes need a ground and never nest (ADR-027).
