All Projects → egoist → vue-slim-tabs

egoist / vue-slim-tabs

Licence: MIT license
A slim tab component for Vue.js (1.3 kB minified)

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
typescript
32286 projects

Projects that are alternatives of or similar to vue-slim-tabs

react-context-tabs
Flexible tabs for React
Stars: ✭ 31 (-70.19%)
Mutual labels:  tabs
browser-tabs-lock
Using this package, you can synchronise your code logic across browser tabs.
Stars: ✭ 29 (-72.12%)
Mutual labels:  tabs
un-material-tab
(deprecated) Custom tab layout which can be used as a material TabLayout alternative and contains basic functionality which Google's TabLayout has.
Stars: ✭ 83 (-20.19%)
Mutual labels:  tabs
hugo-dynamic-tabs
A Hugo theme component that allows you to add dynamic tabs in your markdown files.
Stars: ✭ 36 (-65.38%)
Mutual labels:  tabs
react-native-viewpager-carousel
a flexible viewpager library with carousel functionality
Stars: ✭ 39 (-62.5%)
Mutual labels:  tabs
react-native-paper-tabs
Smooth and fast cross platform Material Design Tabs for React Native Paper
Stars: ✭ 112 (+7.69%)
Mutual labels:  tabs
ionic4-vue-tabs
sample application using ionic framework tab component with vuejs
Stars: ✭ 17 (-83.65%)
Mutual labels:  tabs
vanilla-js-tabs
Vanilla JavaScript tabs - tiny and simple.
Stars: ✭ 54 (-48.08%)
Mutual labels:  tabs
tabs
Guitar tabs transcribed by me, primarily in the stoner/doom/sludge metal genres... plus a few random other things.
Stars: ✭ 34 (-67.31%)
Mutual labels:  tabs
nova-tabs
Another Laravel Nova Tabs Package
Stars: ✭ 60 (-42.31%)
Mutual labels:  tabs
Krypton-Toolkit-Suite-NET-Core
A update to Component factory's krypton toolkit to support .NET Framework 3.5 to .NET Core
Stars: ✭ 27 (-74.04%)
Mutual labels:  tabs
pre-commit-hooks
git pre-commit hooks
Stars: ✭ 71 (-31.73%)
Mutual labels:  tabs
Material-Design-Resume
A simple resume template with a material design touche , testing the Google style CSS ( indigo-green ).
Stars: ✭ 18 (-82.69%)
Mutual labels:  tabs
PagerSlidingTabStrip
An interactive indicator to navigate between the different pages of a ViewPager
Stars: ✭ 2,194 (+2009.62%)
Mutual labels:  tabs
Tabs
Tabs component of React,designed for mobile.Support gestures and lots of tabs.
Stars: ✭ 29 (-72.12%)
Mutual labels:  tabs
IndicatorView
IndicatorView Library For Android
Stars: ✭ 41 (-60.58%)
Mutual labels:  tabs
alfred-tabs
🔍 Find Chrome/Safari tabs you want easily
Stars: ✭ 13 (-87.5%)
Mutual labels:  tabs
guitar-tabs-to-MIDI
A program that converts Guitar Tabs into MIDI files.
Stars: ✭ 38 (-63.46%)
Mutual labels:  tabs
Mtgdb
Mtgdb.Gui - desktop app to search MTG cards and build decks
Stars: ✭ 46 (-55.77%)
Mutual labels:  tabs
dockview
Zero dependency layout manager and builder with ReactJS support
Stars: ✭ 45 (-56.73%)
Mutual labels:  tabs

tabs

NPM version NPM downloads CircleCI donate

Install

yarn add vue-slim-tabs

CDN: UNPKG | jsDelivr

Usage

<template>
  <tabs>
    <tab title="Vue">
      This is Vue
    </tab>
    <tab title="React">
      This is React
    </tab>
    <tab title="Svelte">
      This is Svelte
    </tab>
  </tabs>
</template>

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

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

<!-- optionally use our default style -->
<style src="vue-slim-tabs/themes/default.css"></style>

You can use it as a plugin if you don't mind registering components globally:

import * as Tabs from 'vue-slim-tabs'

Vue.use(Tabs)
Use a slot as tab title
<template>
  <tabs>
    <tab title-slot="vue">
      This is Vue
    </tab>

    <template slot="vue">
      <strong>Vue</strong>
    </template>
  </tabs>
</template>

Props

<Tabs>

defaultIndex

Type: Number
Default: 0

Index of selected tab on the first render.

onSelect

Type: function
Default: undefined

The function to invoke as user selects a tab by clicking:

function onSelect(e, index) {
  // e: click event
  // index: index of selected tab
}

<Tab>

title

Type: string vNode
Required: required unless titleSlot is set

Use a string or vNode as tab title.

titleSlot

Type: string

Use a slot as the tab title.

disabled

Type: Boolean
Default: undefined

Disable relevant tab, i.e. make it unselectable.

Development

Run the example with Poi:

cd vue-slim-tabs
yarn
yarn dev

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vue-slim-tabs © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoist.moe · GitHub @egoist · Twitter @_egoistlily

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].