UI — overlays

Popover

Pure-React popover — no Radix dep. Controlled or uncontrolled, portal-rendered, auto-flip on viewport edges, click-outside and escape to close.

Sourcesrc/components/ui/popover.tsx

Uncontrolled with form content

Default — the popover owns its open state. Any focusable content is fine; it behaves as a dialog to screen readers.

Controlled

Bind open + onOpenChange to drive visibility from outside — e.g. closing after a save.

wrap=true · minimap=false · tab=2

Side and align

Position via side + align. Combines with auto-flip — if the chosen side overflows, the opposite is tried before clamping.