1.0.23 • Published 8 years ago
mainmenu-component v1.0.23
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',
},1.0.23
8 years ago
1.0.22
8 years ago
1.0.21
8 years ago
1.0.20
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago