bit Bheadless

Popover

A non-modal floating panel with focus management, Escape-to-close, and group coordination.

Implementation: CSS Tailwind

Basic Popover

Click the button to open the panel. Focus moves into the panel automatically. Press Escape or click outside to close — focus returns to the button. Unlike a Dialog, the rest of the page stays interactive.

Popover Group (mutual exclusion)

Wrap multiple popovers in an BitBhPopoverGroup so opening one automatically closes the others. Useful for navigation bars.

Controlled

Drive the open state externally with Open and OnOpenChange. The button below opens or closes the popover programmatically.

Open: false

Anchor Positioning

Set Anchor on BitBhPopoverPanel to automatically position the panel relative to the button. The panel uses position: fixed, flips when there's not enough space, and auto-updates on scroll/resize. No position: relative on the parent or position: absolute on the panel needed.

Rich panel content

The panel can contain any content — forms, images, links, nested interactive elements. Tab navigates freely inside and out (no focus trap).

An unhandled error has occurred. Reload 🗙