Popover
Open an interactive panel next to its trigger.
alpina-ui/interactive/popoverUsage notes
The panel wraps long content and follows the visible viewport during zoom or resize. Escape restores trigger focus and outside clicks preserve the destination.
When to use
Reveal optional contextual information or a small control near the element that opened it.
When to avoid
A consequential choice that blocks the current task belongs in a modal dialog.
Accessibility
Give the trigger and panel meaningful names. Check Escape, outside clicks and focus when the panel contains controls.
| Key | Action |
|---|---|
| Enter / Space | Open the panel from its trigger or activate a focused action. |
| Tab / Shift+Tab | Move through the panel and surrounding page. |
| Escape | Close the panel and restore trigger focus. |
Content
Name the thing being explained. Keep the explanation to a short paragraph and move longer guidance to a linked page.
- Use
- How we calculate postage
- Avoid
- Information about additional information
Copy in four languages
- German
- Portoberechnung15 characters
- French
- Calcul des frais de port24 characters
- Italian
- Calcolo delle spese postali27 characters
- Romansh
- Calculaziun dals custs da porto31 characters
npx --no-install alpina add popover