react-stack-overflow-badge
React component that displays a Stack Overflow profile in a badge.
🛠 Install
Using npm:
npm install --save react-stack-overflow-badge
Or with yarn:
yarn add react-stack-overflow-badge
🚀 Usage
import { StackOverflowBadge } from 'react-stack-overflow-badge'
import 'react-stack-overflow-badge/dist/index.css'
Default:
<StackOverflowBadge id={2937831} />
Remove card:
<StackOverflowBadge id={2937831} card={false} />
Remove logo:
<StackOverflowBadge id={2937831} card={false} logo={false} />
⚙️ Props:
Property | Type | Default | Description |
---|---|---|---|
id | number | - | Stack Overflow user ID. |
card | bool | true |
Display the profile in a card. |
logo | bool | true |
Display the Stack Overflow logo. |
📜 License
MIT © eddireeder