vue-tabs
The main idea of this package is to have a standalone tabs component that provides CSS classes to make it fit your project's style guide. Supports WAI ARIA for tabs with automatic activation
Install
$ npm install vue-tmn-tabs
$ yarn add vue-tmn-tabs
Register components
The most common way is to register components globally
;; Vue;Vue;
You can also do this locally
; components: Tab Tabs ;
Add styling
Use components in your project
Tab 1 content Lorem ipsum dolor sit amet consectetur adipisicing elit. ! Tab 2 content Inventore provident enim eos sint, alias dicta, totam in quo laborum aspernatur officiis. Tab 3 content Quis harum dicta, facere incidunt suscipit voluptatum! Tab 4 content Some example content!
Props
Tab
Tab component has 1 prop and default slot:
title
- defines the title of a tab;slot
- you can pass content into it.
Tabs
Tabs component has 3 props:
defaultIndex
- defines default active tab index;transitionName
- transition name for tabs change animation;ariaLabelValue
- is used to define a string that labels the current element