react-github-button
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-github-button package

0.1.11 • Public • Published

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.

Liscense

MIT

/react-github-button/

    Package Sidebar

    Install

    npm i react-github-button

    Weekly Downloads

    18,367

    Version

    0.1.11

    License

    MIT

    Last publish

    Collaborators

    • benjycui