1.2.0 • Published 2 years ago

vue-tabz v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vue-Tabz npm version

A Lightweight and flexible underlined tabs component for VueJS ⚡

Demo

Live Demo

Installing

npm install --save vue-tabz

Installation & Usage

import Vue from 'vue'
import vueTabz from 'vue-tabz'

Vue.use(vueTabz);

new Vue({
  render: h => h(App),
}).$mount('#app')

<template>
    <vue-tabz
        :data="['one', 'two', 'three']"
        max-width="700"
        main-color="#F5BD02"
        @clickedTab="tabsHandler"
    />
</template>

API

Props

NameTypeDefaultDescription
dataArray[]data to show in tabs. (e.g ["One", "Two", "Three"])
main-colorString""tabs main color, can be passed with hash and without (e.g #F5BD02 or F5BD02 directly).
max-widthString""maximum width of tabs container with pixels.

Events

NameParametersDescription
clickedTabtabDatawill fire when the user clicks on a tab and will return tab index and title.
1.2.0

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago