PopupSettings

Specifies the popup settings.

Props

The following table outlines the props for the PopupSettings:

NameTypeDefaultDescription
anchorAlign
AlignmentPoint
{ horizontal: 'left', vertical: 'top' }

Specifies the point on the anchor element used as the reference for popup positioning.

autoReposition
boolean
-

Specifies whether the popup automatically adjusts its position when the content size changes.

collision
-

Specifies the collision handling behavior on the X and Y axes. When the popup collides with the viewport, this determines how it adjusts.

height
string
-

Specifies the height of the popup.

offsetX
number
0

Specifies the horizontal offset for positioning the popup relative to the target.

offsetY
number
0

Specifies the vertical offset for positioning the popup relative to the target.

popupAlign
AlignmentPoint
{ horizontal: 'left', vertical: 'bottom' }

Specifies the point on the popup that aligns with the anchor reference point.

viewPortElementRef
RefObject<HTMLElement | null>
-

Reference to the viewport element used for collision detection of the popup.

width
string
-

Specifies the width of the popup.

zIndex
number
1000

Specifies the z-index value for the popup, controlling its stacking order relative to other elements on the page.