Popover
A popover anchors a floating panel to a trigger and opens on click. It traps focus
while open and closes on Escape or an outside click.
Anatomy
Section titled “Anatomy”<Popover> <PopoverTrigger asChild> <Button>Open</Button> </PopoverTrigger> <PopoverContent> Panel content <PopoverClose asChild> <Button>Close</Button> </PopoverClose> </PopoverContent></Popover>Popover is controllable via open / onOpenChange. PopoverContent forwards
align and sideOffset to Radix and accepts all native <div> attributes; the
trigger and close parts support asChild.