github-corner component in vue 3
usage
<script setup lang="ts">
import { GithubCorner } from '@vfup/github-corner'
import '@vfup/github-corner/dist/style.css'
</script>
<template>
<GithubCorner />
</template>
props
Name | Privacy | Type | Default | Description | Inherited From |
---|---|---|---|---|---|
blank |
boolean |
false |
target="_blank" for link | ||
color |
string |
'#fff' |
Font color | ||
fill |
string |
'#151513' |
Fill color for github corners | ||
repo |
string |
'Blithe-Chiang/github-corner-monorepo' |
Your GitHub Repo Name, generate url start with <https://github.com>. | ||
url |
string |
'' |
You also can custom it to override the url generated by repo. | ||
label |
string |
'View source on GitHub' |
Hover title | ||
reverse |
boolean |
false |
Reverse color and fill | ||
position |
string |
'right' |
Position of github corners, 'left' or 'right' |