vue2-github-corners

0.1.12 • Public • Published

vue2-github-corners

vue2

A simple binding wrapper for github-corners in Vue2

vue2-github-corners

Demo

Show me the code, or demo it

Installation

npm install --save vue2-github-corners

Usage

For standalone version

<script src="/dist/vue-github-corners.browser.js"></script>

For vue-cli user

import { VueGithubCorners } from 'vue2-github-corners'
 
Vue.component('VueGithubCorners', VueGithubCorners)
 

Sample

<template>
  <div id="app">
    <VueGithubCorners :repoUrl="repoUrl" :catColor="catColor" :bgColor="bgColor"></VueGithubCorners>
  </div>
</template>
 
export default {
  ...
  data () {
    return {
      // Replace repoUrl, catColor, bgColor setting as you want.
      // If default is what you like, just don't use related key-value pair and ignore it.
      repoUrl: "https://github.com/weichiachang/vue-github-corners",
      catColor: "#ffffff",
      bgColor: "#151513",
    }
  }
}

License

MIT © WeiChiaChang

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.129latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.129
0.1.100
0.1.80
0.1.60
0.1.40
0.1.20
0.1.00
0.0.70
0.0.50
0.0.30
0.0.10

Package Sidebar

Install

npm i vue2-github-corners

Weekly Downloads

9

Version

0.1.12

License

MIT

Last publish

Collaborators

  • weichiachang