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