Hextech UI

Popover

Live example

Popover

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/popover.json

API reference

These are the main Popover options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
sidetop | bottom | left | rightbottom
alignstart | center | endcenter
sideOffsetnumber10

Placement and dismissal

Compose a trigger and content inside Popover. Set open with onOpenChange when visibility is controlled. Position content with side, align and sideOffset; Escape dismisses it and portal content retains the current theme.