Content
The popover panel with positioning, animations, and interaction handling; styled variant with defaults
| Prop | Type | Default |
|---|---|---|
| className# | stringCSS class name (merged with defaults) | — |
| container# | Element | DocumentFragment | nullPortal container (styled wrapper convenience prop) | — |
| align# | 'start' | 'center' | 'end'Alignment relative to anchor | 'center' |
| sideOffset# | numberDistance in pixels from anchor | 6 |
| side# | 'top' | 'right' | 'bottom' | 'left'Preferred side to display content | — |
| alignOffset# | numberOffset along the alignment axis | — |
| arrowPadding# | numberPadding between arrow and content edges | — |
| avoidCollisions# | booleanAuto-flip or adjust position to avoid collisions | — |
| collisionBoundary# | Element | Element[] | nullElements to check for collision against | — |
| collisionPadding# | numberPadding around collision boundary | — |
| strategy# | 'fixed' | 'absolute'CSS positioning strategy | — |
| sticky# | 'partial' | 'always'Sticky behavior when scrolling parent | — |
| hideWhenDetached# | booleanHide content when anchor is not in viewport | — |
| updatePositionStrategy# | 'always' | 'optimized'How often to update position on scroll/resize | — |
| forceMount# | booleanForce mount content even when closed | — |
| onOpenAutoFocus# | (event: Event) => voidCallback before auto-focus when opening | — |
| onCloseAutoFocus# | (event: Event) => voidCallback before auto-focus when closing | — |
| onEscapeKeyDown# | (event: KeyboardEvent) => voidCallback when Escape key is pressed | — |
| onPointerDownOutside# | (event: PointerDownOutsideEvent) => voidCallback when pointer down event outside content | — |
| onFocusOutside# | (event: FocusOutsideEvent) => voidCallback when focus moves outside content | — |
| onInteractOutside# | (event: PointerDownOutsideEvent | FocusOutsideEvent) => voidCallback for any interaction outside content | — |
| asChild# | booleanRender as child element instead of div | — |
| *# | React.ComponentPropsWithoutRef<'div'>All standard HTML div attributes (id, role, data-*, etc.) | — |