0.0.17 • Published 2 years ago

h-vue-tabs v0.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago