0.1.0 • Published 5 years ago

roadbotics-os-sidebar v0.1.0

Weekly downloads
-
License
NA
Repository
-
Last release
5 years ago

roadbotics-os-sidebar

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save roadbotics-os-sidebar

Usage (Refer to example folder to use as sandbox)

import React from 'react'
import makeStyles from '@material-ui/core/styles/makeStyles'
import SideBar from 'roadbotics-os-sidebar'

const useStyles = makeStyles({
  content: {
    flexGrow: 1,
    background: 'red'
  }
})

const App = () => {
  const classes = useStyles()
  return (
    <SideBar>
      <main className={classes.content}>
        <h2>RoadWay Os</h2>
      </main>
    </SideBar>
  )
}

export default App

Development

As you are developing the sidebar it is convienent to run npm run start at the root of the project while in another tab run npm start. This will allow changes to be seen in realtime.