Browse the docs

Popover

Floating panel anchored to a trigger. Styled over the headless popover primitive, which flips and shifts to stay in the viewport, moves focus into the panel on open, returns it on close, and closes on Escape or an outside press.

This component needs the popover primitive — two ways to get it:

Props

PropValuesDefaultDescription
triggerelementrequiredA single element (e.g. a Button) — the toggle behavior merges onto it.
side"top", "right", "bottom", "left""bottom"Preferred side; flips when out of room.
align"start", "center", "end""center"Alignment along the side.
open / onOpenChangeboolean / functionControlled mode.
classNamestring""Applied to the panel.

Notes

For full control — custom anchors, arrows, or your own markup — use the primitive directly: Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose. Styling hooks are data-state and data-side.