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