The Popover component allows you to control where the floating content appears relative to its anchor element and how it behaves when it approaches the edge of the screen.
Placement
You can specify horizontal (placementX) and vertical (placementY) positions using PopoverPlacements.
Horizontal options (PopoverPlacementX):
PopoverPlacements.LEFTPopoverPlacements.CENTER (Default)PopoverPlacements.RIGHT (Default)
Vertical options (PopoverPlacementY):
PopoverPlacements.TOPPopoverPlacements.CENTER (Default)PopoverPlacements.BOTTOM (Default)
You can also use placementOffsetX and placementOffsetY to provide pixel offsets from these positions.
Viewport Fitting
Use fitInWindowMode to dictate behavior when the popover would otherwise be offscreen:
FitInWindowModes.NONE: Allows the popover to be placed offscreen.FitInWindowModes.FLIP: If the placement would be offscreen, the component attempts to flip the placement to the opposite side.FitInWindowModes.NUDGE: If the placement would be offscreen, the component nudges the popover just enough to keep it within the viewport.