JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q74545F
  • License MIT

Custom element for GitHub corner

Package Exports

  • github-corner

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (github-corner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This builds on the work of tholman.

See the demo.

React custom element boilerplate

<!-- customElements polyfill (12.2KB) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/document-register-element/1.1.1/document-register-element.js"></script>
<!-- our custom element's source (6.1KB) -->
<script src="https://unpkg.com/github-corner"></script>

Basic usage:

<github-corner href="https://github.com/aaronshaf/github-corner-element"></github-corner>

Specify colors:

<github-corner href="https://github.com/aaronshaf/github-corner-element" fill="white" color="black"></github-corner>

Move it to the left:

<github-corner href="https://github.com/aaronshaf/github-corner-element" position="left"></github-corner>