geoview-core
    Preparing search index...

    Variable MenuConst

    Menu: (props: MenuProps) => Element = MenuUI

    Type Declaration

      • (props: MenuProps): Element
      • Create a customized Material UI Menu component.

        Parameters

        • props: MenuProps

          All valid Material-UI Menu props

        Returns Element

        The Menu component

        // Basic usage
        <Menu
        open={isOpen}
        anchorEl={anchorEl}
        onClose={handleClose}
        >
        <MenuItem>Option 1</MenuItem>
        <MenuItem>Option 2</MenuItem>
        </Menu>

        // With custom styling
        <Menu
        className="custom-menu"
        open={isOpen}
        anchorEl={anchorEl}
        >
        <MenuItem>Menu Item</MenuItem>
        </Menu>

        // With position
        <Menu
        open={isOpen}
        anchorEl={anchorEl}
        anchorOrigin={{
        vertical: 'bottom',
        horizontal: 'right',
        }}
        >
        <MenuItem>Positioned Item</MenuItem>
        </Menu>