React components of github cards
npm install react-github-cardsjsx
import { UserCard, RepoCard } from 'react-github-cards';
import 'react-github-cards/dist/default.css';// use medium theme
// import { UserCard, RepoCard } from 'react-github-cards/dist/medium'
import 'react-github-cards/dist/medium.css';
render() {
}
`Themes
currently, just have two kinds of themes, default and medium. Authenticated request
to avoid Github Api Rate Limits simply provide an OAuth Client/Secret:
`jsx
import { UserCard, RepoCard } from 'react-github-cards';render() {
}
`Components
- |props | required| value |
|--------|---------|-------|
|username| yes | string|
|clientId| no | string|
|clientSecret| no | string|
-
|props | required| value |
|--------|---------|-------|
|username| yes | string|
|repo | yes | string|
|clientId| no | string|
|clientSecret| no | string|