app/pb_kits/playbook/pb_button/docs/_button_reaction
The reaction
variant accepts any HTML Emoji or it’s hexa/decimal ref (see here) as a string within the icon
prop. If nothing is passed to the icon prop, the default reaction button will be displayed as seen in the third example. The default reaction button will also be rendered if a Fontawesome icon (not an Emoji) is passed to the icon
prop of a reaction
variant, but the default “smiley +” icon will be replaced with the named icon.
Reaction buttons also accept two additional (optional) props: count
, which accepts a number (i.e., a count of reactions) to be displayed next to the Emoji; and highlight
, which is a boolean that if true, displays the ‘active’ state for the button. Click the first reaction button to see this in action!