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="😍" 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