Sha256: 4ff93f94f86f0bca4b08b844d771c968ffb2219a182787e52a92a714bfb7031f
Contents?: true
Size: 648 Bytes
Versions: 23
Compression:
Stored size: 648 Bytes
Contents
import React, { useState } from 'react' import { Button, PbReactPopover, } from '../..' const PopoverWithButton = () => { const [showPopover, setShowPopover] = useState(false) const handleTogglePopover = () => { setShowPopover(!showPopover) } const popoverReference = ( <Button onClick={handleTogglePopover} text="Button Secondary" variant="secondary" /> ) return ( <PbReactPopover offset placement="bottom" reference={popoverReference} show={showPopover} > {'Whoa. I\'m a popover.'} </PbReactPopover> ) } export default PopoverWithButton
Version data entries
23 entries across 23 versions & 1 rubygems