Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gluons/vue-gh-corners
:octocat: GitHub Corners for Vue.
https://github.com/gluons/vue-gh-corners
github github-corners hacktoberfest vue vue-component vuejs
Last synced: 3 months ago
JSON representation
:octocat: GitHub Corners for Vue.
- Host: GitHub
- URL: https://github.com/gluons/vue-gh-corners
- Owner: gluons
- License: mit
- Created: 2017-06-24T14:28:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T07:01:43.000Z (about 2 years ago)
- Last Synced: 2024-04-14T04:49:01.856Z (10 months ago)
- Topics: github, github-corners, hacktoberfest, vue, vue-component, vuejs
- Language: Vue
- Homepage: https://git.io/vue-gh-corners
- Size: 1.18 MB
- Stars: 29
- Watchers: 2
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue GitHub Corners
[](./LICENSE)
[](https://vuejs.org)
[](https://www.npmjs.com/package/vue-gh-corners)
[](https://www.npmjs.com/package/vue-gh-corners)
[](https://travis-ci.org/gluons/vue-gh-corners)
[](https://github.com/gluons/tslint-config-gluons)
[](https://github.com/carloscuesta/gitmoji):octocat: [tholman's GitHub Corners](https://github.com/tholman/github-corners) for [Vue](https://vuejs.org/).
## Installation
Via [npm](https://www.npmjs.com/):
[](https://www.npmjs.com/package/vue-gh-corners)
```sh
npm install --save vue-gh-corners
```Via [Yarn](https://yarnpkg.com/):
```sh
yarn add vue-gh-corners
```## Demo
Go to https://gluons.github.io/vue-gh-corners/
## Usage
```javascript
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);
``````vue
```
## API
### Props
#### repo
**Type:** `string`
**Required:** `true`GitHub repository slug (`username/repo`).
#### blank
**Type:** `boolean`
**Default:** `true`Enable `target="_blank"` for `` link.
#### bg-color
**Type:** `string`
**Default:** `#151513`The corner background color.
> It's corner SVG's `fill` value.
#### color
**Type:** `string`
**Default:** `#fff`The corner octocat color.
> It's corner SVG's `color` value.
#### position
**Type:** `string`
**Default:** `right`The position of corner.
- `left`
- `right`## Development
- `yarn dev`: Run demo webpage for dev.
- `yarn build`: Build the component.---
**Use [Bili](https://github.com/egoist/bili) — 🥂 Delightful library bundler.**