Inspired by vue-github-badge
yarn add @sinchang/react-github-badge
import GithubBadge from '@sinchang/react-github-badge'
...
render () {
return (
<GithubBadge
url='sinchang/react-github-badge'
/>
)
}
Type: string
Required: true
GitHub slug (owner/repo)
Type: number
Default: 36
width/height of svg icon
Type: string
Default: black
The fill
color of svg icon, you can set it to currentColor
to inherit from parent element.
- Fork it!
- 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 :D
react-github-badge © sinchang, Released under the MIT License.
Authored and maintained by sinchang with help from contributors (list).
sinchang.me · GitHub @sinchang · Twitter @sinchangwen