@gurinder/vue-tabs

1.0.3 • Public • Published

@gurinder/vue-tabs

Inspired by https://github.com/spatie/vue-tabs-component

Usage

HTML

<vue-tabs>
    <vue-tab title="Title 1" :active="true">
        content of tab one
    </vue-tab>
    <vue-tab title="Title 2">
        content of tab 2
    </vue-tab>
    <vue-tab title="Title 3">
        content of tab 3
    </vue-tab>
</vue-tabs>

JS

import {Tabs, Tab} from '@gurinder/vue-tabs';
Vue.components('vueTabs', Tabs);
Vue.components('vueTab', Tab);

SCSS

.tab-links {

  > li {
    padding: 10px;
    border: 1px solid transparent;

    &.active {
      background: white;
      color: $primary;
      margin-bottom: -3px;
      @extend .bd;
      border-bottom-color: transparent;
      border-top-right-radius: $border-radius;
      border-top-left-radius: $border-radius;
    }

  }

}

Readme

Keywords

none

Package Sidebar

Install

npm i @gurinder/vue-tabs

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • gurinder