1.0.7 • Published 7 years ago

@moodles/vue-tabs v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

@moodles/vue-tabs

A simple yet effective tab component for vue.js

Installation

webpack

npm i --save @moodles/vue-tabs

browser

Grab vue-tabs.js from the dist folder and include it using a regular script tag.

<script src="js/vue.js"></script>
<script src="js/vue-tabs.js"></script>

Initialization

webpack
import { Tabs, Tab } from '@moodles/vue-tabs';

const app = new Vue({
    el: '#app',
    components: {
        'tabs': Tabs,
        'tab': Tab
    }
})
browser
<script src="js/vue.js"></script>
<script src="js/vue-tabs.js"></script>

<script>
    Vue.use(VueTabs);

    var app = new Vue({
        el: '#app',
    });
</script>

Component usage

<tabs>
    <tab title="Tab 1">
        Tab 1 content
    </tab>
    <tab title="Tab 2">
        Tab 2 content
    </tab>
    <tab title="Tab 3">
        Tab 3 content
    </tab>
</tabs>
Tabs props
proptypedefault
equalWidthBooleanfalse
Tab props
proptypedefault
titleString''
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago