npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-mui-scaffold

v0.1.10

Published

react-mui-scaffold

Readme

react-mui-scaffold

Made with create-react-library

NPM JavaScript Style Guide

Install

yarn add react-mui-scaffold --save
npm install --save react-mui-scaffold

Usage simple blank

import React from 'react';
import {Layout} from './Components'
import {TopBar,SideBar,Content} from './Components/Layouts'

function App() {
  return (
      <Layout>
        <SideBar  key="SideBar" labelname="SideBar">
          边栏
        </SideBar>
        <TopBar  key="TopBar" labelname="TopBar">
          React MUI Scaffold 脚手架
        </TopBar>
        <Content>页面内容</Content>
      </Layout>
  );
}

export default App;

Screenshot simple blank

image

Usage with theme

import React from 'react';
import clsx from 'clsx';
import { createMuiTheme, ThemeProvider, makeStyles } from '@material-ui/core/styles';
import {Layout,TopBar,SideBar,Content} from 'react-mui-scaffold'
import {
  Grid,
  Avatar,
  IconButton,
  Link,
  Typography,
  List,
  ListItem,
  ListItemText,
  ListItemIcon,
  Divider
} from '@material-ui/core';
import NotificationsIcon from '@material-ui/icons/Notifications';
import HomeIcon from '@material-ui/icons/Home';
import ListRoundedIcon from '@material-ui/icons/ListRounded';
import Filter1RoundedIcon from '@material-ui/icons/Filter1Rounded';
import Filter2RoundedIcon from '@material-ui/icons/Filter2Rounded';

let theme = createMuiTheme({
  palette: {
    primary: {
      main: '#009be5',
    },
  },
});
theme = {
  ...theme,
  overrides: {
    MuiAvatar: {
      root: {
        width: 32,
        height: 32,
      },
    },
  },
}

const lightColor = 'rgba(255, 255, 255, 0.7)';

const useStyles = makeStyles(theme => ({
  appbar:{
    height:60
  },
  sidebarDrawer:{
    backgroundColor: '#18202c',
    color:'#fafafa'
  },
  sidebarIconButton:{
    color:'inherit'
  },
  link: {
    textDecoration: 'none',
    color: lightColor,
    '&:hover': {
      color: theme.palette.common.white,
    },
  },
  iconButtonAvatar: {
    padding: 4,
  },
  item: {
    paddingTop: 1,
    paddingBottom: 1,
    color: 'rgba(255, 255, 255, 0.7)',
    '&:hover,&:focus': {
      backgroundColor: 'rgba(255, 255, 255, 0.08)',
    },
  },
  itemCategory: {
    backgroundColor: '#232f3e',
    boxShadow: '0 -1px 0 #404854 inset',
    paddingTop: theme.spacing(2),
    paddingBottom: theme.spacing(2),
  },
  itemIcon: {
    color:'inherit',
    minWidth: 'auto',
    marginRight: theme.spacing(2),
    '& svg': {
      fontSize: 20,
    },
  },
  itemActiveItem: {
    color: '#4fc3f7',
  },
  categoryHeader: {
    paddingTop: theme.spacing(2),
    paddingBottom: theme.spacing(2),
  },
  divider: {
    backgroundColor: '#404854',
    marginTop: theme.spacing(2),
  },
}));

function App() {
  const classes = useStyles()
  const menus = [
    {
      id: 'Menu One/菜单一',
      icon:<Filter1RoundedIcon/>,
      children: [
        { id: 'item 1/菜单项1', icon: <ListRoundedIcon />,active:true },
        { id: 'item 2/菜单项2', icon: <ListRoundedIcon />,active:false },
      ],
    },
    {
      id: 'Menu Two/菜单二',
      icon:<Filter2RoundedIcon />,
      children: [
        { id: 'item1/菜单项1', icon: <ListRoundedIcon />,active:false },
      ],
    },
  ];
  return (
    <ThemeProvider theme={theme}>
      <Layout>
        <SideBar key="SideBar" labelname="SideBar" DrawerClass={classes.sidebarDrawer} IconButtonClass={classes.sidebarIconButton}>
          <List disablePadding>
            <ListItem className={clsx(classes.item, classes.itemCategory)}>
              <ListItemIcon className={classes.itemIcon}>
                <HomeIcon />
              </ListItemIcon>
              <ListItemText>Dashboard/首页</ListItemText>
            </ListItem>
            {
              menus.map(({id,icon,children})=>(
                <React.Fragment key={id}>
                  <ListItem className={classes.categoryHeader}>
                  <ListItemIcon className={classes.itemIcon}>{icon}</ListItemIcon>
                    <ListItemText>{id}</ListItemText>
                  </ListItem>
                  {
                    children.map(item=>(
                      <ListItem key={item.id} button className={clsx(classes.item, item.active && classes.itemActiveItem)}>
                          <ListItemIcon className={classes.itemIcon}>{item.icon}</ListItemIcon>
                          <ListItemText>{item.id}</ListItemText>
                      </ListItem>
                    ))
                  }
                  <Divider className={classes.divider} />
                </React.Fragment>
              ))
            }
          </List>
        </SideBar>
        <TopBar key="TopBar" labelname="TopBar" color={"primary"} className={classes.appbar}>
          <Grid container spacing={1} direction="row" alignItems="center" justify="flex-end">
            <Grid item xs={true}>
              <Link className={classes.link} href="#" variant="body2">
              React MUI Scaffold 脚手架
              </Link>
            </Grid>
            <Grid item>
              <IconButton color="inherit">
                <NotificationsIcon />
              </IconButton>
            </Grid>
            <Grid item>
              woody
              <IconButton color="inherit" className={classes.iconButtonAvatar}>
                <Avatar src="/static/images/avatar/1.jpg" alt="My Avatar" />
              </IconButton>
            </Grid>
          </Grid>
        </TopBar>
        <Content>
          <Typography variant='h6'>页面内容</Typography>
        </Content>
      </Layout>
    </ThemeProvider>
  );
}

export default App;

Screenshot with theme

image image

License

MIT © woodyhello