react-github-contributions
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React GitHub Contributions

A React component to display a GitHub contributions graph based on react-activity-calendar.

Screenshot

Installation

npm install react-github-contributions

Development-Demo

import GitHubContributions from "react-github-contributions"

// ... in your render() method:

<GitHubContributions username="{your username}"/>

Example in .jsx

import React from 'react';
import { render } from 'react-dom';
import { GitHubContributions } from 'react-github-contributions';

const App = () => {
  return (
    <div className="App">
      <GitHubContributions
        username="your-github-username"
        config={{
          contributionsPerPage: 10,
          theme: 'light',
        }}
      />
    </div>
  );
};

render(<App />, document.getElementById('root'));

License

This package is licensed under Apache-2.0

Happy Coding💻😎

Package Sidebar

Install

npm i react-github-contributions

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

17 kB

Total Files

5

Last publish

Collaborators

  • karan4342