0.0.17 • Published 6 years ago

react-github-showcase v0.0.17

Weekly downloads
69
License
-
Repository
github
Last release
6 years ago

CircleCI npm version

React Github Showcase

A small react component showcasing the latest contributions to your Github profile.

Uses headers to keep style consistent with your theme.

Still under development, but usable! Can as of May 1st, 2018 be seen in action at React Github Showcase Demos.

Example with a wrapper-div providing styling - See more

Image of component wrapped in styled div

Installation

npm install react-github-showcase

Usage

Add this component to your project and style the wrapping Div however you want! Provide the component with a username to look up and your own API-key from Github so that the component can use GraphQL to query for information.

import GithubShowcase from 'react-github-showcase';

<div>
    <GithubShowcase
        username={"jangerhard"}
        api_key={API_KEY}/>
</div>

Customization

Pass these values as props to change the behaviour of the component

username: (Required) The username of Github profile to showcase - String

api_key: (Required) A Github API key to access Github's API - String

showProfileInfo: Display basic profile info from Github - Boolean (Default: true)

numRepositories: How many repositories should be displayed - Number (Default: 3)

numCommits: How many repositories should be displayed - Number (Default: 2)

Styling

Wrap the component in a styled div to change the look and feel of the component, while still keeping it consistant with your own theme. See examples here

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago