1.0.0 • Published 3 years ago

@shapla/vue-tabs v1.0.0

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

Shapla Tabs

A simple responsive horizontal navigation tabs component based on Bulma Tabs for Vue 3

Table of contents

Installation

npm install --save @shapla/vue-tabs

Usage

Styles

with Sass:

import '@shapla/vue-tabs/src/index.scss';

with CSS:

import '@shapla/vue-tabs/dist/style.css';

Javascript Instantiation

import {ShaplaTabs, ShaplaTab} from '@shapla/vue-tabs';

export default {
  name: 'Hello',

  components: {ShaplaTabs, ShaplaTab},
}
<shapla-tabs fullwidth>
  <shapla-tab name="Tab 1" selected>
    Tab One Content
  </shapla-tab>
  <shapla-tab name="Tab 2">
    Tab Two Content
  </shapla-tab>
</shapla-tabs>

Props for ShaplaTabs

PropertyTypeRequiredDefaultDescription
alignmentStringnoleftPossible value can be left, center or right.
sizeStringnodefaultPossible value can be default, small, medium or large.
tabStyleStringnodefaultPossible value can be default, boxed, rounded or toggle.
fullwidthBooleannofalseIf set true, the tabs will take up available full width.

Props for ShaplaTab

PropertyTypeRequiredDefaultDescription
nameStringyestrueTab title.
selectedBooleannofalseSet true if you to keep open by default.