react-github-calendar

A React component to display a GitHub contributions calendar

MIT License

Downloads
12.2K
Stars
443
Committers
3

Bot releases are visible (Hide)

react-github-calendar - Support for React error boundaries Latest Release

Published by grubersjoe 9 months ago

Previously the component rendered an error message itself when fetching the contribution data from the API was not working. This is bad practice, though. Consumers should be able to decide for themselves how to handle the error case. So the component throws now and React error boundaries can be used to handle an error.

react-github-calendar - v4 - Dark mode & better tooltip support

Published by grubersjoe over 1 year ago

Please read the release notes of react-activity-calendar v2. All the information there applies to this component as well.

react-github-calendar - Support for event handlers

Published by grubersjoe almost 3 years ago

You can register event handlers for the SVG <rect/> elements that are used to render the calendar days now. This way you can control the behaviour on click, hover, etc.

See https://grubersjoe.github.io/react-activity-calendar/?path=/story/activity-calendar--event-handlers.

react-github-calendar - New property transformData

Published by grubersjoe about 3 years ago

A new transformData property has been added. It allows you to manipulate the array with contribution data after it has been fetched from the API. This makes it possible to dynamically show a certain time span like only the last two months in the calendar etc.

See here how to use the property:
https://grubersjoe.github.io/react-github-calendar/#example-transform-data

react-github-calendar - Version 3

Published by grubersjoe about 3 years ago

Happy to release version 3. Please see the following link for detailed information about what has been added and about breaking changes:

https://grubersjoe.github.io/react-github-calendar/#upgrade

react-github-calendar - Version 2

Published by grubersjoe over 4 years ago

  • Breaking change: the title above graphs is no longer shown
  • contribution count below graphs can be hiden by setting showTotalCount to false

Edit October 2022

v2 no longer works, because Heroku ditched their free plan. Please upgrade to v3!
https://grubersjoe.github.io/react-github-calendar/#upgrade

react-github-calendar - Version 1.0

Published by grubersjoe over 4 years ago

  • Switched to TypeScript
  • Breaking change: this component uses date-fns@^2.0.0 now. So the format strings have changed. See here.
Package Rankings
Top 2.79% on Npmjs.org
Badges
Extracted from project README
CI