Skip to content

diegobanos/stack-flair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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