Skip to content

benjycui/react-github-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-github-button

npm package NPM downloads Dependency Status

Unofficial GitHub buttons in React.

Installation

npm install --save react-github-button

Usage

import GitHubButton from 'react-github-button';

ReactDOM.render(
  <GitHubButton type="stargazers" size="large" namespace="benjycui" repo="react-github-button" />
  , mountNode
);

API

type

Enum{ 'stargazers', 'watchers', 'forks' }

size

Enum{ 'default', 'large' }

namespace

String

Your GitHub id or organization name.

repo

String

The name of your repository.

License

MIT