https://github.com/evseevdev/vue-simple-tabs
Tabs component for vue.js
https://github.com/evseevdev/vue-simple-tabs
tabs vue vuejs2
Last synced: 27 days ago
JSON representation
Tabs component for vue.js
- Host: GitHub
- URL: https://github.com/evseevdev/vue-simple-tabs
- Owner: evseevdev
- License: mit
- Created: 2017-07-07T12:47:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-29T08:25:30.000Z (over 7 years ago)
- Last Synced: 2025-08-09T18:48:52.244Z (8 months ago)
- Topics: tabs, vue, vuejs2
- Language: Vue
- Size: 9.77 KB
- Stars: 11
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-simple-tabs
Tabs component for vue.js
## Installation
NPM:
```bash
npm install --save vue-simple-tabs
```
Yarn:
```bash
yarn add vue-simple-tabs
```
## Usage
```html
Tab 1 content
Tab 2 content
Tab 3 content
import { Tabs, Tab } from 'vue-simple-tabs';
export default {
components: { Tabs, Tab }
};
```
## Events
You can add a handler for tab changed event.
Example:
```html
Tab 1
Tab 2
Tab 3
import { Tabs, Tab } from 'vue-simple-tabs';
export default {
components: { Tabs, Tab },
methods: {
tabChanged(tab) {
// Do something
}
}
};
```