Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Latest commit

 

History

History
63 lines (46 loc) · 1.21 KB

README.md

File metadata and controls

63 lines (46 loc) · 1.21 KB

navbar-vue

custom navbar with great animation

preview

demo

Navbar configurations

navbar: {
  brand: "my-awesome-site", // note: you can use function to return custom component
  links: [
    {
      to: "/about/",
      value: "About", // <a :href="to">{{ value }}</a>
      icon: () => <my-icon />, // optional: custom icon.
    }
  ],
  useAnchor: true, // false will use router-link
  ulClass: "nav-links", // optional: custom class for unordered list
                        // note: without dot !
  liClass: "", // optional: custom class for list item.
  customLinksComponent: () => <my-custom-links-component /> // note: your component should take the same props in link object.
  openClass: "", // optional: custom class for animation on mobile mode
  mobileMode: false // this is a required prop for mobile
}

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.