Get perfect badges every time for the non-designer.
npm i react-badges --save
Then...
import Badge from 'react-badges'
<Badge>
+2 message
</Badge>
react-badges supports 3 options, both of which are optional:
- type - primary | success | danger (Defaults to primary)
- badgeStyle - solid | light | outline (Defaults to solid)
- size - sm | md | lg | xl (Defaults to md)