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.12.0 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.12.0 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.11.1 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.11.1 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.11.0 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.11.0 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.PLAY1051removinghighchartsdependency1465 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.PLAY1051removinghighchartsdependency1465 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.webpackerregistercomponents1463 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.webpackerregistercomponents1463 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.dependabotnpmandyarnfortawesomefontawesomepro6421439 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.dependabotnpmandyarnfortawesomefontawesomepro6421439 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.play10561428 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.play10561428 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.play1054tableheadersortconsolidation1416 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.play1054tableheadersortconsolidation1416 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.play10561409 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.play10561409 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-13.10.0.pre.alpha.dependabotnpmandyarntiptapextensionlink21121407 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-13.10.0.pre.alpha.dependabotnpmandyarntiptapextensionlink21121407 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx