A fresher "Fork me on Github" callout ported to React
npm install react-github-cornersreact-github-corners to your project from npm using your favorite package management tool``js
import GithubCorner from 'react-github-corners'
import 'react-github-corners/dist/GithubCorner.css'
const App = (props) => (
`
You can override the color using the color and backgroundColor props:
`js`
const App = (props) => (
Class names try to follow BEM principles, so you can dig around the source code to find the class names and take direct control of the components using plain CSS. You can also override the SVG style by passing an svgStyle attribute to your component:
`js`
const App = (props) => (
If you want to help this library support other build configurations, file an issue.
url _(required)_: the URL of your project, e.g. https://github.com/github/gitignore
backgroundColor _(default: "black")_: the background color of the corner
color _(default: "white")_: the color of the octocat
svgStyle _(default: {})_: override the style of the SVG
target (default: "_self"`) : override the target attribute of the link
Ditto for this.
Copyright (c) 2016 Tim Holman