Sha256: 3ad4bfd38a1284ddbe7694171160054ac0b094639401ac71e3617e4d6d512f26
Contents?: true
Size: 720 Bytes
Versions: 2
Compression:
Stored size: 720 Bytes
Contents
import React, {useState} from "react" import { Button } from "../../" const ButtonReaction = (props) => { const [highlightActive, setHighlightActive] =useState(false) return ( <div> <Button count={5} icon="😍" tabIndex={0} variant="reaction" {...props} /> <Button count={153} highlight = {highlightActive} icon="🎉" 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