
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
mui-app-container
Advanced tools
Orchestrates Material-UI's AppBar and Drawer components based on device width
Orchestrates Material-UI 1.0's AppBar, Drawer and content (ex. <main>
) to provide a responsive application layout.
<Drawer>
props based on screen size
960px
(md) and up: sets variant
to persistent
and defaults open
to true
960px
(ex. phone): sets variant
to temporary
and defaults open
to false
<AppBar>
and content based when <Drawer>
is persistent
and open
toggleDrawer
to close drawer
onClick
on list item on drawer) or on all calls (AppBar menu icon)<AppContainer.Consumer>
import AppContainer from 'mui-app-container';
export default () => (
<AppContainer>
{({ getAppBarProps, getDrawerProps, toggleDrawer }) => (
<div>
<AppBar {...getAppBarProps()}>
<Toolbar>
<IconButton
color="inherit"
aria-label="open drawer"
onClick={() => toggleDrawer()}
>
<MenuIcon />
</IconButton>
<Typography variant="title" color="inherit" style={{ flex: 1 }} noWrap>
App Container Example
</Typography>
<IconButton color="inherit">
<AccountCircle />
</IconButton>
</Toolbar>
</AppBar>
<Drawer {...getDrawerProps()}>
<div>
<Divider />
<List>
{mailFolderListItems(() => toggleDrawer(true))}
</List>
<Divider />
<List>
{otherMailFolderListItems(() => toggleDrawer(true))}
</List>
</div>
</Drawer>
<main>
<Typography>{'Content goes here'}</Typography>
</main>
</div>
)}
</AppContainer>
);
FAQs
Orchestrates Material-UI's AppBar and Drawer components based on device width
We found that mui-app-container demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.