Overlays
Popover
A lightweight surface anchored to its trigger, for a small form or a snippet of contextual content. Unlike a tooltip it can hold interactive controls.
Purpose
Use a Popover when the content is interactive but too small to deserve a
Dialog. For non-interactive hints use
Tooltip instead — a tooltip cannot hold focusable controls.
Inline form
Structure
| Property | Value |
|---|---|
| Surface | --popover fill, 1px --border, --shadow-8 |
| Radius | --radius-lg (8px) |
| Width | 288px default (w-72) |
| Padding | 16px |
| Placement | Centre-aligned, 6px offset from the trigger; fade + zoom entrance |
Best practices
Do
- Keep it to one small task — a field or two and a single action.
- Lead with a short heading so the surface names its purpose.
- Move to a Dialog once the content needs sections or scrolling.
Don't
- Use it for a plain hint — that is Tooltip.
- Nest a popover inside another overlay.
- Confirm destructive actions here; that is AlertDialog.
Accessibility & keyboard
- Focus moves into the popover on open and returns to the trigger on close.
- Keyboard: Esc closes; Tab cycles within the content.
Every Popover part and prop in Storybook
Sheet
A panel that slides in from any edge of the screen — filters, detail views and secondary forms. Use it when the person still needs the context of the page behind.
Dropdown menu
A list of actions triggered from a button. Group related items under a label, separate groups with a rule, and mark irreversible actions as destructive.