Render a Button through render on PopoverTrigger. showCloseButton adds the close icon in the corner.
The sample also uses Button. One command adds them with this item:
seats-note.tsx
Popover
| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From Base UIPopover.RootBase UI docs | |||||||||||||||||||||||||||||||||||||
| default | boolean | false | Whether the popover is initially open. To render a controlled popover, use the open prop instead. | ||||||||||||||||||||||||||||||||||
| open | boolean | — | Whether the popover is currently open. | ||||||||||||||||||||||||||||||||||
| on | — | Event handler called when the popover is opened or closed. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
PopoverTrigger
<button>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||
From Base UIPopover.TriggerBase UI docs | |||||||||||||||||||||||||||||||||
| id | string | — | ID of the trigger. In addition to being forwarded to the rendered element, it is also used to specify the active trigger for the popover in controlled mode (with the PopoverRoot triggerId prop). | ||||||||||||||||||||||||||||||
| handle | PopoverHandle<unknown> | — | A handle to associate the trigger with a popover. | ||||||||||||||||||||||||||||||
| payload | unknown | — | A payload to pass to the popover when it is opened. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||||||||||||||||||||||||||||
PopoverContent
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | boolean | false | Show an arrow that points at the trigger. The gap grows from 4px to 8px. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | boolean | false | Put a clear layer under the popup (Base UI Popover.Backdrop), for example to dim it. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| show | boolean | false | Show a close button (a 24px ghost icon button) 10px from the top and the end. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| padding | "default""none""tight" | "default" | default: radius 14, 12px padding and 10px between the parts, 288px wide. tight: 4px padding and 4px between the parts, as wide as the content: a row of 28px actions (a plain Toolbar) with the 4px inset of the bar recipe, 38px high (the selection pill of the Quote Reply). none: no padding and no gap, as wide as the content: a panel that lays out its own parts edge to edge (a head with a rule, a scroll box, a docked composer: the Chat Popup). Give it a width and a height with layout classes; the body fills that height. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| portal | — | Other Base UI props of the inner parts. A className here adds to the component classes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| positioner | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | PopupPartProps<PopoverBackdropProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | PopupPartProps<PopoverArrowProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| close | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| close | string | "Close" | The accessible name of the close button. Translate it with the page. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UIPopover.PopupBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| initial | — | Determines the element to focus when the popover is opened. By default, focus moves to the first tabbable element inside the popup, except when the popover is opened by touch — then the popup itself is focused to avoid opening the virtual keyboard. - false: Do not move focus. - true: Move focus based on the default behavior (first tabbable element or popup). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, null to fall back to the default behavior, or false/undefined to do nothing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| final | — | Determines the element to focus when the popover is closed. - false: Do not move focus. - true: Move focus based on the default behavior (trigger or previously focused element). - RefObject: Move focus to the ref element. - function: Called with the interaction type (mouse, touch, pen, or keyboard). Return an element to focus, true to use the default behavior, null to fall back to the default behavior, or false/undefined to do nothing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| anchor | — | An element to position the popup against. By default, the popup will be positioned against the trigger. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PopoverHeader
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PopoverTitle
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PopoverDescription
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PopoverFooter
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PopoverClose
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PopoverViewport
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UIPopover.ViewportBase UI docs | |||
| children | ReactNode | — | The content to render inside the transition container. |
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| EnterorSpace | On the trigger, opens the popover. Focus moves to the first focusable element. |
|---|---|
| Tab | Moves focus to the next element. |
| Escape | Closes the popover. Focus returns to the trigger. |
- DialogPick Dialog for a task that blocks the page and needs the full attention of the user.
- TooltipPick Tooltip for a short text label of a control on hover and focus, with no link or control inside.
- DrawerPick Drawer for a large panel that slides in from an edge of the screen, often on a phone.
- Hover CardPick Hover Card for a rich preview of a link, such as a profile, that opens on hover and focus.







