Overlays
Popover
Non-modal panel anchored to a trigger for small, focused tasks. Closes on outside click or Esc. Use Dialog when the task blocks the page.
When to use
A small, focused task anchored to its trigger: snooze until, quick edit, filter options.
Use something else
Read-only hint โ Tooltip. Larger task or form โ Dialog or Drawer. List of actions โ Menu.
Do
- Keep it to a few controls and one primary action in the footer.
- Close on Esc and click outside.
Don't
- Don't put a Popover inside another Popover.
Props
| Prop | Type |
|---|---|
trigger required | React.ReactNode |
title | string |
footer | React.ReactNode |
open | boolean |
align | 'start' | 'end' |
width | number |
children required | React.ReactNode |
Use
const { Popover } = window.Tessera;
const el = React.createElement(Popover, { /* props */ });