1.0.5 • Published 3 years ago

shapla-tabs v1.0.5

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

shapla-tabs

npm npm vue2

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

Table of contents

Installation

npm i shapla-tabs

Usage

Add the component:

import {tabs,tab} from 'shapla-tabs';

export default {
  name: 'Hello',

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

Props for tabs

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 tab

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

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago