1.5.0 • Published 5 years ago

vue-simple-tabs v1.5.0

Weekly downloads
105
License
MIT
Repository
github
Last release
5 years ago

vue-simple-tabs

Tabs component for vue.js

Installation

NPM:

npm install --save vue-simple-tabs

Yarn:

yarn add vue-simple-tabs

Usage

<template>
  <tabs>
    <tab title="Tab 1" active="true">Tab 1 content</tab>
    <tab title="Tab 2">Tab 2 content</tab>
    <tab title="Tab 3">Tab 3 content</tab>
  </tabs>
</template>

<script>
  import { Tabs, Tab } from 'vue-simple-tabs';

  export default {
    components: { Tabs, Tab }
  };
</script>

Events

You can add a handler for tab changed event.

Example:

<template>
  <tabs @changed="tabChanged">
    <tab title="Tab 1" active="true">Tab 1</tab>
    <tab title="Tab 2">Tab 2</tab>
    <tab title="Tab 3">Tab 3</tab>
  </tabs>
</template>

<script>
  import { Tabs, Tab } from 'vue-simple-tabs';

  export default {
    components: { Tabs, Tab },
    methods: {
      tabChanged(tab) {
        // Do something
      }
    }
  };
</script>
1.5.0

5 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago