Sha256: 08337d6ae687d179c8cd4c15aef91b375d71dfef88cd20a845740e5dc92fb364

Contents?: true

Size: 930 Bytes

Versions: 447

Compression:

Stored size: 930 Bytes

Contents

import React, {useState} from "react"
import { Button } from "../../"

const ButtonReaction = (props) => {

const [highlightActive, setHighlightActive] =useState(false)
const reactionCount = 153

return (
  <div>
    <Button
        count={highlightActive ? (reactionCount + 1) : reactionCount}
        highlight = {highlightActive}
        icon="&#127881;"
        onClick={()=> setHighlightActive(!highlightActive)}
        tabIndex={0}
        variant="reaction"
        {...props}
    />
    <Button
        count={5}
        icon="1️⃣"
        marginLeft='lg'
        tabIndex={0}
        variant="reaction"
        {...props}
    />
    <Button
        marginLeft='lg'
        tabIndex={0}
        variant="reaction"
        {...props}
    />
    <Button
        icon="user"
        marginLeft='lg'
        tabIndex={0}
        variant="reaction"
        {...props}
    />


    </div>
)
}

export default ButtonReaction

Version data entries

447 entries across 447 versions & 2 rubygems

Version Path
playbook_ui_docs-13.9.0.pre.alpha.PLAY962SingleSelect1261 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.9.0.pre.alpha.PLAY962SingleSelect1261 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.9.0.pre.alpha.play845allkitsbytypes1260 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1260 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.9.0 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.8.0.pre.alpha.PLAY1016reactionbuttonemojibug1245 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.8.0.pre.alpha.PLAY1016reactionbuttonemojibug1245 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx