Popover
A small panel anchored to the control that opened it. It is a dialog to a screen reader, not a menu, because it holds controls a user tabs through rather than a list of commands.
Reach for it
A small panel of anything, including controls, next to what opened it.
Not for
A list of commands, which is a Dropdown menu, or a sentence, which is a Tooltip.
A filter panel
Not modal: the table behind stays scrollable and clickable, and clicking away closes the panel. A filter dropdown that dims the table it filters is a dialog wearing a popover's shape.
Showing: Past due
Where it opens
A side and an alignment are a preference, not an instruction. The panel flips and shifts to stay in the viewport, and never grows wider than the window, so one anchored to a control near the edge of a narrow screen is still readable.
Fixed widths
A panel that sizes to its contents jumps as a list loads and jumps again as someone types into it. auto exists for the case with no width of its own, a single stepper or a colour swatch.
API reference
Popover
Also takes the props of Base UI Popover Root.
PopoverTrigger
Also takes the props of Base UI Popover Trigger.
PopoverClose
Also takes the props of Base UI Popover Close.
PopoverContent
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | - | Names the panel. Required, because it is a dialog to a screen reader. |
| children* | ReactNode | - | |
| data-testid | string | - | Names the element for a test. Never rendered, never announced. |
| description | string | - | Announced with the title. Use for what the panel is for. |
| isTitleHidden | boolean | - | |
| size | keyof typeof SIZES | - | |
| side | 'top' | 'right' | 'bottom' | 'left' | - | Which side of the trigger it opens on, room permitting. |
| align | 'start' | 'center' | 'end' | - | How it lines up with the trigger along that side. |