geoview-core - v2.2.0
    Preparing search index...

    Variable PopoverConst

    Popover: (props: PopoverProps) => Element = PopoverUI

    Type Declaration

      • (props: PopoverProps): Element
      • Material-UI Popover component with keyboard and focus management.

        Wraps Material-UI's Popover to provide popup panel positioned relative to an anchor element. Includes keyboard event handling (disables arrow keys/space to prevent page scrolling while open), automatic focus management, and focus trap support. Useful for tooltips, dropdown menus, and positioned content panels.

        Parameters

        • props: PopoverProps

          Popover configuration (see MUI docs for all available props)

        Returns Element

        Popover component with keyboard management and focus handling

        // Basic usage
        <Popover
        open={isOpen}
        anchorEl={anchorElement}
        onClose={handleClose}
        >
        <Typography>Popover content</Typography>
        </Popover>

        // With positioning
        <Popover
        open={isOpen}
        anchorEl={anchorElement}
        anchorOrigin={{
        vertical: 'bottom',
        horizontal: 'center',
        }}
        transformOrigin={{
        vertical: 'top',
        horizontal: 'center',
        }}
        >
        <Box p={2}>Positioned content</Box>
        </Popover>

        // With custom styling
        <Popover
        open={isOpen}
        anchorEl={anchorElement}
        className="custom-popover"
        PaperProps={{
        sx: { p: 2 }
        }}
        >
        <Typography>Styled content</Typography>
        </Popover>