react-github-ribbon
v1.0.0
Published
React Github top corner component
Downloads
2
Readme
react-github-ribbon
React Github top corner component
Table of Contents
Install
This project uses node and npm.
$ npm install react-github-ribbon
$ # OR
$ yarn add react-github-ribbon
Usage
import React from "react";
import ReactDOM from "react-dom";
import GithubRibbon from "react-github-ribbon";
function App() {
return (
<div className="App">
<GithubRibbon
user="tiaanduplessis"
repo="wenk"
fill="tomato"
color="salmon"
/>
<h1>Hello</h1>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT