Enums

The following enums are available in the Popup component:

NameValueDescription
ActionOnScrollType
'Hide' | 'None' | 'Reposition'

Defines how the popup should behave when scroll events occur in the parent container.

  • Hide - The popup will be hidden when scrolling occurs in the parent container, helping to improve performance or prevent UI clutter during scrolling.
  • None - The popup will not respond to scroll events and will maintain its absolute position on the page regardless of scrolling.
  • Reposition - The popup will recalculate and update its position to maintain proper alignment with the target element when scrolling occurs.
CollisionType
'Fit' | 'Flip' | 'None'

Defines the available collision handling types for popup positioning.

  • Fit - Fit collision handling - the popup will be adjusted to fit within the viewport boundaries while maintaining its original side relative to the anchor element.
  • Flip - Flip collision handling - the popup will flip to the opposite side of its anchor element when it would otherwise extend beyond viewport boundaries.
  • None - No collision handling - the popup will maintain its original position regardless of viewport boundaries.