Component
Popover
Anchor contextual content to a trigger with collision-aware positioning, outside dismissal, and automatic focus restoration.
Interactive preview
Usage
Import the component entry and start with its smallest complete example.
Import
import { Popover } from "@chitrank2050/monoline-ui/popover"Basic usage
<Popover>
<Popover.Trigger asChild>
<Button variant="secondary">Project details</Button>
</Popover.Trigger>
<Popover.Content side="bottom" align="start">
<p className="ml-eyebrow">Deployment · Production</p>
<p>Last deployed 8 minutes ago.</p>
<Popover.Arrow />
</Popover.Content>
</Popover>Usage guidance
Choose the component for its interaction model and semantics before customizing its appearance.
Popover places contextual controls or supporting information beside a trigger without blocking the rest of the page.
The task must be modal, the content is only a short text hint, or the information should remain visible in the document.
Popover manages outside dismissal, Escape, collision positioning, and focus return. Its trigger needs a clear accessible name and its content needs a logical focus order.
This component needs browser JavaScript for state or browser APIs.
API reference
Props, slots, and callbacks available on this component.
Design tokens
Theme variables this component reads for color, spacing, and motion.
Implementation
The source used by the example above, including any state it needs.
<Popover>
<Popover.Trigger asChild>
<Button variant="secondary">Project details</Button>
</Popover.Trigger>
<Popover.Content side="bottom" align="start">
<p className="ml-eyebrow">Deployment · Production</p>
<p>Last deployed 8 minutes ago.</p>
<Popover.Arrow />
</Popover.Content>
</Popover>Related documentation
Compare related components or review the package and theme setup.