sidebar-nav

Collapsible Navigation Sidebar
3,551
Install
npm install sidebar-nav
Latest Version:1.0.18
Vue:2
Last Updated:Sep 23, 2018
Links: npm
Maintainer: shane_poppleton

sidebar-nav v1.0.18

Collapsible Sidebar Navigation

Installation

Using npm:

$ npm i --save sidebar-nav

Using yarn:

$ yarn add sidebar-nav

Usage

in app.js:

import SidebarNav from 'sidebar-nav';

then, to register it as a global component: Vue.component('sidebar-nav', SidebarNav);

To use this component add a menu array to your root vue component:

e.g.

data: {
   menu: [{
      icon: 'fas fa-comment',
      name: 'Messaging',
      link: '/'
   }, {
     icon: 'fas fa-users',
      name: 'Families',
      link: '/'
   }, {
      icon: 'fas fa-user',
      name: 'Contacts',
      link: '/'
   }]
}

Then use the component like this:

<sidebar-nav :menu="menu" side="right" sidebar-top="100px"></sidebar-nav>

Version History

Version Released Vue License
1.0.18 ^2.5.16
1.0.17 ^2.5.16
1.0.16 ^2.5.16
1.0.15 ^2.5.16
1.0.14 ^2.5.16