sidebar-menu-component
A configurable sidebar menu in many projects
3,214
| Install | |
|---|---|
npm install sidebar-menu-component |
|
| Latest Version: | 9.0.0 |
| Vue: | 2 |
| Last Updated: | Jun 10, 2022 |
| Links: | npm |
Maintainer: robertjdevop
Sidebar Menu
is a component that can be reused in different Vue projects with configurable properties and tailwind styles
:hammer: Server requirements
- Node.js >= 14.0
- Vue.js 2.6
- Sass >= 1.32.0
- Vuex >= 3.0.0
- make sure you have a sass compiler either Webpack, Laravel-mix, Vite or Rollup
:pushpin: Installation
# git clone
git clone git@bitbucket.org:placetopay/sidebar-menu-component.git
For development
npm install
npm run dev
Build package
npm run build
:pushpin: Plugin installation
# install via npm
npm i sidebar-menu-component
:books: Plugin usage
// register the plugin on vue
import SidebarMenu from "sidebar-menu-component";
import 'sidebar-menu-component/dist/sidebar-menu.scss'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({})
//register globally
Vue.use(SidebarMenu , { store })
// add to your base template
//Default properties
<sidebar-menu></sidebar-menu>
//With properties
<sidebar-menu
:menu-items="[]"
:sidebar-config="[]"
>
</sidebar-menu>
:notebook: Props
Sidebar menu items
{
data: [
// Sidebar parent menu (required)
{
link: '#',
name: 'Transactions',
icon: 'fa-cash-register',
},
{
// Sidebar parent menu (required)
link: '#',
name: 'Dashboard',
icon: 'fa-chart-line',
// If you have submenus, you must declare them as follows
submenus: [
{
link: '#',
name: 'Generals',
icon: 'bx-grid-alt',
},
{
link: '#',
name: 'Temas personalizados',
icon: 'bx-grid-alt',
}
]
}
]
}
Sidebar menu styles
{
data: [{
sidebarOpenLogo: '',
// logo sidebar cloded
sidebarClosedLogo: '',
// color sidebar
bgColor: 'white',
// color sidebar border
bgColorSidebarBorder: 'black',
// color text of filter search
colorInput: 'black',
// background color of input
bgColorInput: 'var(--primary-color-200)',
}]
}
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 9.0.0 | ^2.6.14 | ||
| 8.0.0 | ^2.6.14 | ||
| 6.2.0 | ^2.6.14 | ||
| 6.1.0 | ^2.6.14 | ||
| 6.0.0 | ^2.6.14 | ||
| 5.0.0 | ^2.6.14 | ||
| 4.0.0 | ^2.6.14 | ||
| 2.1.2 | ^2.6.14 | ||
| 2.1.1 | ^2.6.14 | ||
| 2.0.1 | ^2.6.14 | ||
| 1.10.1 | ^2.6.14 | ||
| 1.9.1 | ^2.6.14 | ||
| 1.8.1 | ^2.6.14 | ||
| 1.7.1 | ^2.6.14 | ||
| 1.6.1 | ^2.6.14 | ||
| 1.5.1 | ^2.6.14 | ||
| 1.4.1 | ^2.6.14 | ||
| 1.3.1 | ^2.6.14 | ||
| 1.2.1 | ^2.6.14 | ||
| 1.1.1 | ^2.6.14 | ||
| 1.0.1 | ^2.6.14 | ||
| 1.0.0 | ^2.6.14 | ||
| 0.4.22 | ^2.6.14 | ||
| 0.4.21 | ^2.6.14 | ||
| 0.4.20 | ^2.6.14 | ||
| 0.4.19 | ^2.6.14 | ||
| 0.4.18 | ^2.6.14 | ||
| 0.4.17 | ^2.6.14 | ||
| 0.4.16 | ^2.6.14 | ||
| 0.4.15 | ^2.6.14 |
Showing the latest 30 of 101. See every release on npm