All Projects → karakanb → Vue Info Card

karakanb / Vue Info Card

Licence: mit
Simple and beautiful card component with an elegant spark line, for VueJS.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Info Card

V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (+35.85%)
Mutual labels:  component, vue-components, vuejs2
Vuesax
New Framework Components for Vue.js 2
Stars: ✭ 5,293 (+3228.93%)
Mutual labels:  component, vue-components, vuejs2
Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (+59.12%)
Mutual labels:  component, vue-components, vuejs2
Vue Share Buttons
🔗A set of social buttons for Vue.js
Stars: ✭ 34 (-78.62%)
Mutual labels:  component, vue-components, vuejs2
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (+186.79%)
Mutual labels:  component, vue-components, vuejs2
Vue Flip
A Vue.js component to flip elements.
Stars: ✭ 37 (-76.73%)
Mutual labels:  component, vue-components, vuejs2
Xmui
基于vue2,为公司产品打(zao)造(lun)的(zi)可复用UI组件,文档:
Stars: ✭ 94 (-40.88%)
Mutual labels:  component, vuejs2
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (-36.48%)
Mutual labels:  vue-components, vuejs2
Vue Clazy Load
Component-based lazy (CLazy) load images in Vue.js 2
Stars: ✭ 106 (-33.33%)
Mutual labels:  vue-components, vuejs2
Vue Highcharts
The Component of Vue 2.x for highcharts
Stars: ✭ 112 (-29.56%)
Mutual labels:  component, vuejs2
Xcui
🍴 A Vue.js 2.x desktop components colletion
Stars: ✭ 88 (-44.65%)
Mutual labels:  vue-components, vuejs2
Maz Ui
Stand-alone components library to build your interfaces with Vue.JS & Nuxt.JS
Stars: ✭ 109 (-31.45%)
Mutual labels:  component, vue-components
Vue Pdf
vue.js pdf viewer
Stars: ✭ 1,700 (+969.18%)
Mutual labels:  component, vuejs2
Iver
ui component for vue2.0
Stars: ✭ 92 (-42.14%)
Mutual labels:  vue-components, vuejs2
Vue Multi Select
This component gives you a multi/single select with the power of Vuejs components.
Stars: ✭ 92 (-42.14%)
Mutual labels:  vue-components, vuejs2
Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (+1230.19%)
Mutual labels:  vue-components, vuejs2
Nextcloud Vue
🍱 Vue.js components for Nextcloud app development ✌
Stars: ✭ 89 (-44.03%)
Mutual labels:  vue-components, vuejs2
Vue Generator
A CLI generator for Vue components, views and store modules
Stars: ✭ 111 (-30.19%)
Mutual labels:  vue-components, vuejs2
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (-20.13%)
Mutual labels:  component, vue-components
Storefront Ui
Customization-first, performance-oriented and elegant UI framework for eCommerce (and not only) based on Vue.js and Google Retail UX Playbook. Made with 💚 by Vue Storefront team and contributors.
Stars: ✭ 1,827 (+1049.06%)
Mutual labels:  vue-components, vuejs2

Simple and beautiful card component with an elegant spark line, for VueJS.

Build Status Coverage Status npm version License

Demo

Live demo of the component can be found here.

Installation

npm i -S vue-info-card

Usage

After the installation, the component can be used by passing the appropriate props for displaying the data and messages. A sample usage within a single file component is as follows:

<template>
  <div>
    <info-card :frontType="'graph'"
      :frontTitle="front.title"
      :frontData="front.graphData"
      :backTitle="back.title"
      :backData="back.message" />
  </div>
</template>

<script>
import InfoCard from 'vue-info-card';

export default {
  components: {
    InfoCard,
  },
  data() {
    return {
      front: {
        title: 'Daily Conversion Value',
        graphData: [3, 2, 5, 9, 5, 10, 3, 5, 0, 0, 1, 8, 2, 9, 0],
      },
      back: {
        title: 'Monthly Summary',
        message: 'Your average daily conversion value for this month is <b>50.4$</b>. It is below the average of the last six months.',
      },
    };
  },
};
</script>

Props

There are basically three different props for each faces of the card. A face requires a type, such as graph or text, a title, and a data to display in the body of the card. The props are as follows:

prop Type Optional? Default Description
frontType String 'text' Type of the front face of the card. Available options are graph or text.
frontTitle String 'Default Card Title' Title of the front face of the card.
frontData String or Array Data that will be displayed on the front face of the card. If frontType is set to graph, this must be an array; otherwise, a string.
frontTrendGradients Array ['#4facfe', '#00f2fe'] Gradient that will be used on the spark line, expected to be an array of color hexas as strings.
backType String 'text' Type of the back face of the card. Available options are graph or text.
backTitle String 'Default Card Title' Title of the back face of the card.
backData String or Array Data that will be displayed on the back face of the card. If frontType is set to graph, this must be an array; otherwise, a string.
backTrendGradients Array ['#4facfe', '#00f2fe'] Gradient that will be used on the spark line, expected to be an array of color hexas as strings.

Note that both frontData and backData props accept HTML as input, which means you can inject elements to the card body directly.

Credits

The component is based on two main features: spark line and flip effect. The spark line is created with the amazing vuetrend component, which creates cool and customizable graphs. The flipping effect is implemented in pure CSS, and influenced from the tutorial here.

Browser Support

The component supports all of the modern browsers, with least versions: Firefox 37, Chrome 42, Safari 8, Opera 29, and IE 10.

License

The project is under MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].