0.0.17 • Published 3 years ago

h-vue-tabs v0.0.17

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

A Vue plugin that helps you to create re-usable tab components that aids in smooth routing. The h-vue-tabs package provides a flexible and customizable tab navigation component for Vue.js applications. Easily switch between tabs and control the active tab using the router.

Sample

Sample

mobile friendly

Installation

Vue Apps

Install:

yarn add h-vue-tabs

# or use npm

npm install h-vue-tabs

Then, import and register the component:

# main.ts or main.js

import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router';

import HVuetabs from 'h-vue-tabs';
import 'h-vue-tabs/dist/style.css';

const app = createApp(App)
app.use(router)
app.use(HVuetabs);

app.mount('#app')

Remember to add import the css file import 'h-vue-tabs/dist/style.css'

Usage

<script setup>
import { ref } from "vue";

const tabs = ref(['one', "two"])
</script>

<template>
  <Tab :tabs="tabs" :activeTabIndex="0" activeTabColor="red"></Tab>
</template>

Component Parameters

ParameterTypeDefaultDescription
tabs (required)Array[]TabsList.
activeTabIndexNumber0activeTab Index Number on the array, starts from 0.
activeTabColorString#000000activeTab Color.

License

MIT

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago