1. vue-github-badge
cuz I need it
vue-github-badge
Package: vue-github-badge
Created by: egoist
Last modified: Tue, 28 Jun 2022 19:33:37 GMT
Version: 1.0.1
License: MIT
Downloads: 2,353
Repository: https://github.com/egoist/vue-github-badge

Install

npm install vue-github-badge
yarn add vue-github-badge

vue-github-badge

NPM version NPM downloads Build Status donate

Install

 yarn add vue-github-badge

CDN: https://unpkg.com/vue-github-badge/dist/

Usage

<template>
  <github-badge slug="owner/repo" />
</template>

<script>
  import GitHubBadge from 'vue-github-badge'

  export default {
    components: { 
      'github-badge': GitHubBadge
    }
  }
</script>

API

Props

slug

Type: string

Required: true

GitHub slug (owner/repo)

width/height

Type: number

Default: 36

width/height of svg icon

fill

Type: string

Default: black

The fill color of svg icon, you can set it to currentColor to inherit from parent element.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vue-github-badge © egoist, Released under the MIT License.

Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @rem_rin_rin

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code