JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q44689F
  • License MIT

A lightweight React component for displaying GitHub repository contributors

Package Exports

    Readme

    react-contributors

    Small and simple React component to display a fully responsive list of your project's contributors with info gathered from their GitHub profile.

    NPM JavaScript Style Guide

    Demo

    Live demo: https://evert-arias.github.io/react-contributors/

    demo

    Install

    npm install --save react-contributors

    Usage

    import React, { Component } from "react";
    
    // Import the component - styles are automatically included
    import { Contributors } from "react-contributors";
    
    // Username of the repo(s) owner.
    const owner = "evert-arias";
    
    // Repository name or array with multiple repositories names.
    const repos = ["EasyButton", "easybtn.earias.me"];
    
    class App extends Component {
      render() {
        return <Contributors owner={owner} repo={repos} />;
      }
    }

    You must pass the following two props to the component:

    owner: Username of the repo(s) owner.

    repo: Repository name or array with multiple repositories names

    License

    MIT © Evert Arias