react-gh-repo-cards

2.0.0 • Public • Published

react-gh-repo-cards

NPM Version

Perfect github repo cards!

Installation

npm install react-gh-repo-cards # npm
yarn add react-gh-repo-cards # yarn

Features

  • NO external dependencies.
  • Oh, Did I say, it's responsive? Yes it is! Just drop this component wherever you want, And it tries it's best to fit itself there.
  • Looks exactly same as GitHub pinned repository cards (including hyper-links).
  • Simple to use.

Customizations

There are two props Loading, Error components to over-ride default components.

<RepoCards
  repoDetails={...}
  Loading={CustomLoadingComponent}
  Error={CustomErrorComponent}
/>

Usage

import RepoCards from "react-gh-repo-cards";
import "react-gh-repo-cards/dist/index.css";

const Cards = () => {
  return (
    <RepoCards
      repoDetails={[
        {
          user: "FdelMazo",
          repoName: "yamerecibi",
          showFullTitle: true,
        },
        {
          user: "CITIZENDOT",
          repoName: "gh-info",
          showFullTitle: true,
        },
        {
          user: "CITIZENDOT",
          repoName: "TestCode",
          showFullTitle: false,
        },
        {
          user: "CITIZENDOT",
          repoName: "VCPicker",
          showFullTitle: false,
        },
      ]}
    />
  );
};

export default Cards;

License

MIT © Appaji

Package Sidebar

Install

npm i react-gh-repo-cards

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

74.6 kB

Total Files

11

Last publish

Collaborators

  • citizendot