1.0.1 • Published 3 years ago
react-github-repo-cards v1.0.1
react-github-repo-cards
A beautiful card that displays Github repository infos.
Demo Show
Online Demo Webside
Local
git clone https://github.com/InfiniteSynthesis/react-github-repo-cards.git cd react-github-repo-cards npm i npm start
open
localhost:3001
How to Use 🍕
install
npm i react-github-repo-cards
import
import import { RepoCard } from 'react-github-repo-cards'
use
<RepoCard username="InfiniteSynthesis" reponame="react-github-repo-cards" />
Settings 🔨
Parameter | Type | Default | Description |
---|---|---|---|
username | String | "" | User name of this repository. |
reponame | String | "" | Name of the repository. |
center | Boolean | false | If card is aligned center. |
squareAvatar | Boolean | false | If avatar is displayed with square outline. |
descriptionLine | Number | 2 | The maximum line of repo description. |