vue-gh-corners
GitHub Corners for Vue.
1,792
28
| Install | |
|---|---|
npm install vue-gh-corners |
|
| Latest Version: | 3.0.1 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jan 7, 2023 |
| Links: | GitHub · npm |
Maintainer: illuminator
Vue GitHub Corners
:octocat: tholman's GitHub Corners for Vue.
Installation
Via npm:
npm install --save vue-gh-corners
Via Yarn:
yarn add vue-gh-corners
Demo
Go to https://gluons.github.io/vue-gh-corners/
Usage
import Vue from 'vue';
import VueGitHubCorners from 'vue-gh-corners';
// Import GitHub Corners stylesheet.
import 'vue-gh-corners/dist/vue-github-corners.iife.css';
Vue.use(VueGitHubCorners);
<template>
<div id="app">
<github-corners repo="gluons/vue-gh-corners"></github-corners>
</div>
</template>
API
Props
repo
Type: string
Required: true
GitHub repository slug (username/repo).
blank
Type: boolean
Default: true
Enable target="_blank" for <a> link.
bg-color
Type: string
Default: #151513
The corner background color.
It's corner SVG's
fillvalue.
color
Type: string
Default: #fff
The corner octocat color.
It's corner SVG's
colorvalue.
position
Type: string
Default: right
The position of corner.
leftright
Development
yarn dev: Run demo webpage for dev.yarn build: Build the component.
Use Bili โ ๐ฅ Delightful library bundler.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.1 | 2 | MIT | |
| 3.0.0 | 2 | MIT | |
| 2.0.0 | 2 | MIT | |
| 1.0.2 | 2 | MIT | |
| 1.0.1 | 2 | MIT | |
| 1.0.0 | 2 | MIT |
