Sha256: b8980d72274cacdb414da4fa87b0a9d814cb321ab4fdc38a961d1c34b3f28442
Contents?: true
Size: 1009 Bytes
Versions: 104
Compression:
Stored size: 1009 Bytes
Contents
import React, { useState } from 'react' import { Button, Icon, List, ListItem, PbReactPopover, } from '../..' const PopoverWithButton = () => { const [showPopover, setShowPopover] = useState(false) const handleTogglePopover = () => { setShowPopover(!showPopover) } const popoverReference = ( <Button onClick={handleTogglePopover} variant="secondary" > {'Filter By'} <Icon fixedWidth icon="angle-down" /> </Button> ) return ( <PbReactPopover padding="none" placement="bottom" reference={popoverReference} show={showPopover} > <List xpadding> <ListItem><a>{'Popularity'}</a></ListItem> <ListItem><a>{'Title'}</a></ListItem> <ListItem><a>{'Duration'}</a></ListItem> <ListItem><a>{'Date Started'}</a></ListItem> <ListItem><a>{'Date Ended'}</a></ListItem> </List> </PbReactPopover> ) } export default PopoverWithButton
Version data entries
104 entries across 104 versions & 1 rubygems