Git Profile Card
bh-git
| BharatGit
The Git component creates a beautiful GitHub profile card that fetches and displays user information directly from the GitHub API. It shows the user’s avatar, username, location, follower count, repository count, and bio.
Basic Usage
<bh-git username="hiteshchoudhary"></bh-git>
import React from 'react';import { BharatGit } from 'bharat-ui/react/components/git';
function App() {return ( <BharatGit upi="hiteshchoudhary"/>);}export default App;
Properties
Property | Type | Description |
---|---|---|
username | string | GitHub username to retrieve details from |
disableApi | string | Disable Git API call to manually pass git details |
bio | string | Override bio data incase api call is disabled |
followers | number | Override followers data incase api call is disabled |
repos | number | Override repos data incase api call is disabled |
avatar | number | Override avatar data incase api call is disabled |
profileUrl | number | Override profile link data incase api call is disabled |
location | number | Override location data incase api call is disabled |
name | number | Override name data incase api call is disabled |