import { Layout, SplitPaneProps } from "mui-extended"; import { SwipeableDrawerProps } from "@mui/material"; const menu: ReactNode; const appBar: ReactNode; const content: ReactNode; const splitPaneProps: SplitPaneProps; // optional - splitpane used for Desktop Layout const swipeableDrawerProps: SwipeableDrawerProps; //optional - swipeableDrawer used for Mobile Layout const layout = ( <Layout menu={menu} appBar={appBar} splitPaneProps={splitPaneProps} swipeableDrawerProps={swipeableDrawerProps} > {content} </Layout> );
Layout has 3 parts
This Documentation Uses Layout component along with TreeMenuWithNextLinks
SplitPane
for DesktopSwipeableDrawer
wraapped with withCloseOnNavigation
Overflow in menu
and content
are handled independently
Write an email to opensource@sodaru.com