@y7k/component-navigation-bar
v1.0.1
Published
A Vue navigation bar UI component to switch between tabs/items
Downloads
2
Readme
Y7K Component: Navigation Bar
The Navigation Bar is a group of links or labels that belong to each other and only one of them can be selected. If you select a link, it will emit a event to its parent Vue component.
It is based on Vue 2, MaintainableCSS and the Y7K Style Plate. Detailed information in the Y7K Showroom.
Installation
Install npm package
npm install @y7k/component-navigation-bar --save
Include in your project
import navigationBar from '@y7k/component-navigation-bar';
Variant 1: Register components globally:
import navigationBar from '@y7k/component-navigation-bar';
navigationBar.registerGlobally();
Variant 2: Use components directly:
import { NavigationBar } from '@y7k/component-navigation-bar';
// Vue component example
export default {
components: {
NavigationBar,
},
}
Include styles
In your main.scss file
@import '@y7k/filterable-list/src/scss/navigationBar';
// If you don't set "node_modules" as a webpack include path:
@import '../[path]/../node_modules/@y7k/component-navigation-bar/src/scss/navigationBar';
Documentation
Please have a look at the usage documentation in the Y7K Showroom.