mainmenu-component
v1.0.23
Published
Create a vertical menu with all routes that pass throw props. Also you can change it colors passing style prop.
Downloads
110
Readme
MainMenu Component
Create a vertical menu with all routes that pass throw props. Also you can change it colors passing style prop.
How to use
import MainMenuComponent from 'mainmenu-component';
....
<MainMenuComponent routes={} style={}>About route prop
The routes prop is an object array like this :
{
path: '', // Router path
exact: true,
label: 'Principal', // Title to display into the menu
container: () => import('container-name'), // React Component
layout: CustomLayout, // Template to load
}
About style prop
The style prop should be an object with the following structure:
style: {
color: 'black',
backgroundColor: 'white',
},