0.0.3 • Published 4 years ago
web-component-github-corner v0.0.3
web-component-github-corner
Usage
Use CDN
See ./index.html.
<web-component-github-corner
repo="https://github.com/Brannua/web-component-github-corner"
color="white"
fill="blue"
blank
/>
<script src="https://cdn.jsdelivr.net/npm/web-component-github-corner@latest" type="module"></script>Use NPM
npm i web-component-github-corner// main.js
import "web-component-github-corner";<!-- index.html -->
<web-component-github-corner
repo="https://github.com/Brannua/web-component-github-corner"
color="white"
fill="blue"
blank
/>Fields
| Name | Type | Example | Explaination | Default |
|---|---|---|---|---|
| repo | String | https://github.com/user/repo | 你的项目链接 | "" |
| color | (optional) | String | #ffffff | github-logo 的颜色 | #ffffff |
| fill | (optional) | String | #000000 | 填充背景色 | #000000 |
| blank | (optional) | String | 写 blank 或 blank="任意字符串" 都会在新标签页打开页面 | undefined |