0.2.2 • Published 5 years ago

vue-magic-line v0.2.2

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

vue-magic-line

A tabs-component for Vue.

Demo

You can find some examples here

Configuration

Install component

Globally

import VueMagicLine from 'vue-magic-line'

Vue.use(VueMagicLine)

Locally

import {VueMagicLine, VueMagicLineTab} from 'vue-magic-line';

    export default {
      components: {
        VueMagicLine,
        VueMagicLineTab
      },
      ...

Template

<vue-magic-line>
  <vue-magic-line-tab name="First tab" >
      This is the content of the first vue-magic-line-tab
  </vue-magic-line-tab>
  <vue-magic-line-tab name="Second tab" active>
      <b>This is the content of the second vue-magic-line-tab</b>
  </vue-magic-line-tab>
  <vue-magic-line-tab name="Third tab" disabled>
      This is the content of the third vue-magic-line-tab
  </vue-magic-line-tab> 
  <vue-magic-line-tab name="Fourth tab">
      <i>This is the content of the fourth vue-magic-line-tab</i>
  </vue-magic-line-tab>
  <vue-magic-line-tab name="Fifth tab" disabled>
      This is the content of the fifth vue-magic-line-tab
  </vue-magic-line-tab>
  <vue-magic-line-tab name="Sixth tab">
      <p>This is the content of the sixth vue-magic-line-tab</p>
  </vue-magic-line-tab> 
</vue-magic-line> 

Properties

vue-magic-line

PropertyDescriptionValueDefault value
secondaryshow secondary lineBooleantrue
parentapply to parent and not to linkBooleantrue
magic-line-wrapper-cssCSS for class magic-line-wrapperObject{}
magic-line-item-wrapper-cssCSS for class magic-line-item-wrapperObject{}
magic-line-item-cssCSS for class magic-line-itemObject{}
magic-line-item-link-cssCSS for class magic-line-item-linkObject{}
magic-line-content-wrapper-cssCSS for class magic-line-content-wrapperObject{}
primary-colorcolor for primary lineStringrgb(0, 188, 212)
primary-heightheight for primary lineNumber3px
primary-topadd some margin to primary lineNumber3px
secondary-colorcolor for secondary lineStringrgba(211, 211, 211, 0.4)
secondary-heightheight for secondary lineNumber2px
secondary-topadd some margin to secondary lineNumber3px
durationduration for magic-line transition in secondsNumber0.3

vue-magic-line-tab

PropertyDescriptionValueDefault value
activeset active tabBooleantrue
disableddisable tabBooleanfalse

Events

EventDescriptionParameters
before-set-primarybefore positioning primary lineprimary-line, tab
set-primaryafter positioning primary lineprimary-line, tab
before-set-secondarybefore positioning secondary linesecondary-line, tab
set-secondaryafter positioning secondary linesecondary-line, tab

License

vue-magic-line is licensed under the MIT License - see the LICENSE file for details.

Author

Andreas Stephan

0.2.2

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago