geoview-core
    Preparing search index...

    Variable DrawerConst

    Drawer: (props: DrawerPropsExtend) => Element = DrawerUI

    Type Declaration

      • (props: DrawerPropsExtend): Element
      • Create a customized Material UI Drawer component.

        Parameters

        Returns Element

        The Drawer component

        // Basic usage
        <Drawer>
        <List>
        <ListItem>Content</ListItem>
        </List>
        </Drawer>

        // With controlled state
        <Drawer
        status={isOpen}
        variant="permanent"
        >
        <List>
        <ListItem>Drawer content</ListItem>
        </List>
        </Drawer>

        // With custom styling
        <Drawer
        className="custom-drawer"
        style={{ width: 240 }}
        >
        <div>Drawer content</div>
        </Drawer>

        For performance optimization in cases of frequent parent re-renders, consider wrapping this component with React.memo at the consumption level.