Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

<github-ribbon>

Web Component wrapper for Github Ribbons using Polymer.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <scriptsrc="//unpkg.com/@webcomponents/webcomponentsjs@2.0.0/webcomponents-bundle.js"></script>
  2. Import Custom Element:

    <linkrel="import" href="src/github-ribbon.html">
  3. Start using it!

    <github-ribbonowner="nbluis"repo="github-ribbon-element"></github-ribbon>

Options

AttributeOptionsDefaultDescription
ownerstringnoneOwner of the project (User or Organization)
repostringnoneThe repo name
cornerleft, rightrightThe corner which ribbon will appears
colorgreen, red, gray, white, darkblue, orangegreenThe ribbon color

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

About

Web component wrapper for github ribbons using polymer.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages