Sha256: ee3013bc02ba4406e9cdf8a862f385bc60136dc187c653838a40f03985f28428

Contents?: true

Size: 935 Bytes

Versions: 704

Compression:

Stored size: 935 Bytes

Contents

import React, {useState} from "react"
import { Button } from "playbook-ui"

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

704 entries across 704 versions & 2 rubygems

Version Path
playbook_ui_docs-14.0.0.pre.alpha.PLAY15063511 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PLAY15063511 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PA1477timestampkit3509 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3509 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PLAY14733507 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PLAY14733507 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PBNTR416formpillsizes3506 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PBNTR416formpillsizes3506 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PA1477timestampkit3502 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3502 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PBNTR415starratingform3493 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3493 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PBNTR415starratingform3492 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3492 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PLAY1475bumpaxecoredependency3483 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PLAY1475bumpaxecoredependency3483 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui_docs-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx