1.0.15 • Published 1 year ago

github-contributions-react v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Github Contributions React

This is a react component, used for displaying a Github users contribution count with a number of customizations available.

📺 Demo

Here you can see this in action in a little demo project I've built

📸 Screenshot

Screenshot

🛠 Installation

inside a React project

npm i github-contributions-react

⚡️ Import

within a React component/page

import { GithubContributions } from "github-contributions-react";

✨ Usage

within a React component/page see all available props below

<GithubContributions username="alanmontgomery" color="#3069ba" />

⚛️ Props

These are props you can pass to the component to customize

  • username - The github username whose stats you want to show.
  • color - A hex color, used to style the graph, all light/dark colors are worked out automatically. defaults to #3069ba
  • showTitle - Show a title with a link to the username defaults to true
  • showTooltips - Shows tooltips with day counts when hovering over a square defaults to true
  • showTotal - Shows a count of the total contributions in the last year above the graph defaults to true
  • showToday - Shows a count of todays contributions above the graph defaults to false

🙋‍♂️ Questions

Feel free to contact me via Twitter @93alan.

1.0.15

1 year ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago