react-gitcard
A Simple GitCard
Install
npm install --save @pranavms13/react-gitcard
Usage
GitUserCard Usage
import React, { Component } from 'react'
import { GitUserCard } from '@pranavms13/react-gitcard'
class Example extends Component {
render() {
return <GitUserCard username="pranavms13" />
}
}
GitRepoCard Usage
import React, { Component } from 'react'
import { GitRepoCard } from '@pranavms13/react-gitcard'
class Example extends Component {
render() {
return <GitRepoCard username="pranavms13" repo="whatsapp-node-api"/>
}
}
Props | value | Description |
---|---|---|
username | Github Username |
Enter your Github username |
repo | GitHub reponame |
Enter your Github Repo Name (only on GitRepoCard) |
variant | "dark" / "light" |
Light or dark Variant - Default : Light |
License
MIT © pranavms13