0.0.2 • Published 4 years ago

stack-flair v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

stack-flair

A StackExchange flair react component

What is a StackOverflow flair?

https://stackoverflow.com/help/flair

Installation

npm i stack-flair
...

import StackFlair from "stack-flair"

...

<StackFlair
  id="5803509"
  userName="diegowc"
/>
    
...

Options

  • id: Your StackOverflow (or StackExchange) user id
  • userName: Your StackOverflow (or StackExchange) user name
  • className (Optional): The wrapper class. Defaults to "stack-flair-wrapper"
  • combined: (Optional): If true, use StackExchange global flair. If false, use only StackOverflow flair. Default to false
  • height (Optional): Flair height. Defaults to 58
  • theme (Optional): Flair theme. Defaults to 'default'. Available: 'default', 'dark', 'clean', 'hotdog'
  • width (Optional): Flair width. Defaults to 208