Search...

Search documentation...

Popover

Popover

A Radix Popover — floating, non-modal content anchored to a trigger, dismissed by an outside click. The base for Select, DateRangePicker, and others.

import { Popover, PopoverTrigger, PopoverContent } from "@pompeitech/vesuvius-ui";

Default

API

Popover

PropTypeDefaultDescription
openbooleanControlled open state.
defaultOpenbooleanfalseInitial state, uncontrolled.
onOpenChange(open: boolean) => void
modalbooleanfalsetrue traps focus and blocks outside interaction like a dialog; default false lets focus and interaction pass through to the rest of the page.

PopoverTrigger — every native <button> prop, plus asChild (boolean, default false).

PopoverContent

PropTypeDefaultDescription
side"top" | "right" | "bottom" | "left""bottom"Which side of the trigger to render on.
align"start" | "center" | "end""center"Alignment along that side.
sideOffsetnumber4Gap from the trigger, in px.

Plus every native <div> prop; rendered in a Portal, and repositions itself automatically to stay within the viewport.

Accessibility

Closes on Esc or an outside click/focus by default and returns focus to the trigger. Unlike Dialog, it's non-modal by default (modal={false}) — focus isn't trapped, so content outside it stays operable while it's open; use it for auxiliary content (a filter form, an inline editor), not a full confirmation flow.