Popover
A floating popover component for displaying additional content. Built on Base UI Popover primitive with positioning support.Compound Components
Popover.Root
The root container that manages popover state.Controlled open state. When provided, the popover becomes controlled.
Uncontrolled default open state.
Callback fired when the open state changes.
Whether to open on hover instead of click.
Delay in milliseconds before opening on hover.
Delay in milliseconds before closing on hover.
Popover.Trigger
The trigger element that opens the popover.Additional CSS classes to apply.
Merge props onto the child element instead of rendering a button.
Popover.Portal
Portals the popover content to the end of the document body.Whether to keep the popover mounted in the DOM when closed.
The container element to portal into. Defaults to
document.body.Popover.Positioner
Positions the popover relative to the trigger.The side of the trigger to position the popover.
The alignment of the popover relative to the trigger.
The distance in pixels from the trigger.
The offset in pixels along the alignment axis.
collisionPadding
number | { top?: number; right?: number; bottom?: number; left?: number }
default:"8"
The padding in pixels from the viewport edges.
Whether the popover should stick to the trigger on scroll.
Popover.Popup
The popover popup container.Additional CSS classes to apply. Default: Rounded surface with shadow and backdrop blur.
- Scale from 0.98 to 1 with fade
- Duration: 100ms
- Uses CSS
data-starting-styleanddata-ending-stylefor transitions
Popover.Arrow
Optional arrow pointing to the trigger.Additional CSS classes to apply. Default:
"fill-surface-overlay"Popover.Title
Accessible popover title.Additional CSS classes to apply. Default: Medium weight text with strong content color.
Popover.Description
Accessible popover description.Additional CSS classes to apply. Default: Regular weight text with subtle content color.
Popover.Close
Close button wrapper.Additional CSS classes to apply.
Merge props onto the child element.
Popover.Backdrop
Optional backdrop overlay.Additional CSS classes to apply. Default:
"fixed inset-0 z-40 bg-utility-backdrop"Usage
With Close Button
Hover Trigger
With Backdrop
Types
Accessibility
- Popover is linked to trigger via
aria-controlsandaria-expanded - Escape key closes the popover
- Focus returns to trigger on close
- Title and description are linked via
aria-labelledbyandaria-describedbywhen provided