1.0.2 • Published 6 years ago

flexi-widget v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Flexi Widget

Reusable, mobile responsive Vue component

Installation

npm i --save-dev flexi-widget

Browser

Include the script file, then install the component with Vue.use(FlexiWidget); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/flexi-widget/dist/flexi-widget.min.js"></script>
<script type="text/javascript">
  Vue.use(FlexiWidget);
</script>

Module

import FlexiWidget from 'flexi-widget';

Usage

Once installed, it can be used as simply as:

<flexi-widget :color="'blue'"
              :header="'Flexi Widget'"
              :result="202030"
              :progressBar="50">
</flexi-widget>
.container{
    display: flex;
    //optionial 
    #use flex-direction: 'column' or 'row'
}

API

Props

NameTypeDescription
colorStringChanges the theme color of the flexi widget.
headerStingSet a header.
resultString NumberSet a main value in the widget
progressBarNumberSet a value for progress bar