
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@clipmx/drawer
Advanced tools
Wrapper of MuiDrawer that adds the optional funciontality of rendering a MuiList through the items
prop.
Each item could have the followint properties:
ListItemText
component, should be unique.ListItemIcon
component, you must provide an Icon
or SvgIcon
node.'above'|'below'
to specify where to render it.false
, the item won't be marked as active.You can style each element of the rendered list using the following classes (use withStyles from mui to set them):
root
class of the ListItem
component.root
class of the ListItem
component when active.root
class of the ListItemIcon
component.root
class of the ListItemIcon
component when active.root
class of the ListItemText
component.root
class of the ListItemText
component when active.primary
class of the ListItemText
component.primary
class of the ListItemText
component when active.To specify a general action for when items are clicked, you can use the itemsAction
prop, which will receive the item been clicked, this function won't be executed when clicking an item for which you provided an action
callback and like with that other funciton, if you return false
, then the item won't be marked as active.
To specify the initial active item, you can pass the activeItem
prop, specifying the index of it or the label of the item.
If you don't want to use this auto items rendering, you can still provide the children
of the Drawer, as if you where using the normal MuiDrawer, if you provide both the children
and items
props, the List
(items
) component will be rendered as the first child of the drawer.
npm install @clipmx/drawer --save
import React from 'react';
import ResponsiveDrawer from '@clipmx/drawer';
const drawerItems = [
{
name: 'First item',
icon: <FirstItemIcon />,
linkPath: '/go/to/firstItemPath',
},
{
name: 'Second item',
icon: <SecondItemIcon />,
linkPath: '/go/to/secondItemPath',
},
{
name: 'Third item',
icon: <ThirdItemIcon />,
linkPath: '/go/to/thirdItemPath',
},
];
const MyComponent = () => (
<div>
<Drawer items={drawerItems} />
</div>
);
export default MyComponent;
This is a wrapper of the Material-UI drawer, so you can use any props that Material-UI supports.
FAQs
Core Clip Drawer
The npm package @clipmx/drawer receives a total of 0 weekly downloads. As such, @clipmx/drawer popularity was classified as not popular.
We found that @clipmx/drawer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.