0.0.3 • Published 3 years ago

web-component-github-corner v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

web-component-github-corner

npm npm.io

零基础写一个 web-component | 夏与冬的小站

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
NameTypeExampleExplainationDefault
repoStringhttps://github.com/user/repo你的项目链接""
color | (optional)String#ffffffgithub-logo 的颜色#ffffff
fill | (optional)String#000000填充背景色#000000
blank | (optional)String写 blank 或 blank="任意字符串" 都会在新标签页打开页面undefined
0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago