Skip to content

Popover

Free

A panel that opens from a button and stays until people close it. It holds content they can use, such as a share link, filters, or a short form.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

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

PropTypeDefaultDescription
From Base UIPopover.RootBase UI docs
defaultOpenbooleanfalseWhether the popover is initially open. To render a controlled popover, use the open prop instead.
openboolean—Whether the popover is currently open.
onOpenChange—Event handler called when the popover is opened or closed.

PopoverTrigger

<button>
PropTypeDefaultDescription
classNamestring—
From Base UIPopover.TriggerBase UI docs
idstring—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).
handlePopoverHandle<unknown>—A handle to associate the trigger with a popover.
payloadunknown—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>
PropTypeDefaultDescription
classNamestring—
arrowbooleanfalseShow an arrow that points at the trigger. The gap grows from 4px to 8px.
backdropbooleanfalsePut a clear layer under the popup (Base UI Popover.Backdrop), for example to dim it.
showCloseButtonbooleanfalseShow 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.
portalProps—Other Base UI props of the inner parts. A className here adds to the component classes.
positionerProps—
backdropPropsPopupPartProps<PopoverBackdropProps>—
arrowPropsPopupPartProps<PopoverArrowProps>—
closeButtonProps—
closeLabelstring"Close"The accessible name of the close button. Translate it with the page.
From Base UIPopover.PopupBase UI docs
initialFocus—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.
finalFocus—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>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PopoverTitle

<div>
PropTypeDefaultDescription
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PopoverDescription

<div>
PropTypeDefaultDescription
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PopoverFooter

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PopoverClose

<div>
PropTypeDefaultDescription
classNamestring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

PopoverViewport

<div>
PropTypeDefaultDescription
classNamestring—
From Base UIPopover.ViewportBase UI docs
childrenReactNode—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.
  • Use it for interactive content that must stay near its button.
  • Use PopoverTitle and PopoverDescription to name and describe the panel.
  • Use arrow, backdrop, showCloseButton, and padding on PopoverContent to change the look.
  • Use createPopoverHandle to open one popover from several detached triggers.
  • For a short label on hover, use a Tooltip.
  • For a list of actions, use a Menu.
  • For a task that blocks the page, use a Dialog.
  • For a panel from an edge of the screen, use a Drawer.
EnterorSpaceOn the trigger, opens the popover. Focus moves to the first focusable element.
TabMoves focus to the next element.
EscapeCloses the popover. Focus returns to the trigger.

It is a Base UI Popover. PopoverTitle and PopoverDescription name and describe the popup.

Focus moves into the popup when it opens. Escape closes it, and focus goes back to the trigger.

It is not modal by default, so the page stays usable while it is open.

Open
popup · 150ms · ease-panel (0.2, 0.4, 0.2, 1) · fades in and scales from 95%
Close
popup-exit · 120ms · ease-out (0, 0, 0.2, 1)
  1. AddedPopover.
Open the release