New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drawer-navigation

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drawer-navigation

drawer-navigation is a drawer navigation solution for react web apps.

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

About

drawer-navigation is a drawer navigation solution for react web apps.

Getting Started

Install the pacakage :

npm i drawer-navigation
yarn add drawer-navigation

Include in your project

import Drawer from 'drawer-navigation/Drawer
<Drawer
routes={[{url:"/",component:<Home/>,label:"Home"},{url:"/shop",component:<h1>About</h1>,label:"Shop"}]}
mainContainerStyles={{
  display:"flex",
  flexDirection:"column",
  justifyContent:"center",
  alignItems:"center",
  width:"100%",
  height:"100%"
}}
hamburgerIconColor="red"
drawerCloseColor="orange"
drawerBackgroundColor="blue"
drawerLabelsStyle={{border:"2.5px solid orange",width:"auto",color:"orange",fontFamily:"monospace",padding:12,margin:2}}
/>

Props

PropsDetailsExample
routestakes an array of objects:{url:"/your-page",component<YourPage/>,label:"Your Page"}
mainContainerStylesStyles the containing element that holds the main view takes a styles object : {width:200,height:200}
drawerLabelsStyleStyles the drawer element that holds the main view takes a styles object : {width:200,height:200}
hamburgerIconColorcolor for the hamburger icon that opens teh drawer , takes a string"red"
drawerCloseColorcolor for the close drawer icon that closes the drawer , takes a string"orange"
drawerBackgroundColordrawer background color , takes a string"green"

Examples

FAQs

Package last updated on 01 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc