Sha256: 9945b44b8af7ec33aec6a67a029b053b1f48747d4a6f1f48fab3ab5431927479

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

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

const ButtonReaction = (props) => {

const [highlightActive, setHighlightActive] =useState(false)

return (
  <div>
    <Button
        count={5}
        icon="&#128525;"
        tabIndex={0}
        variant="reaction"
        {...props}
    />
    <Button
        count={153}
        highlight = {highlightActive}
        icon="&#127881;"
        marginLeft='lg'
        onClick={()=> setHighlightActive(!highlightActive)}
        tabIndex={0}
        variant="reaction"
        {...props}
    />
    <Button
        marginLeft='lg'
        tabIndex={0}
        variant="reaction"
        {...props}
    />

    </div>
)
}

export default ButtonReaction

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
playbook_ui_docs-12.33.0.pre.alpha.PLAY905reactionbuttons982 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
playbook_ui-12.33.0.pre.alpha.PLAY905reactionbuttons982 app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx