MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / PopoverContent

Function PopoverContent

stories/examples/Popover/Update.js:11–32  ·  view source on GitHub ↗
({ scheduleUpdate })

Source from the content-addressed store, hash-verified

9import PropTypes from 'prop-types';
10
11function PopoverContent({ scheduleUpdate }) {
12 const [isOpen, setIsOpen] = useState(false);
13
14 return (
15 <>
16 <PopoverHeader>Schedule Update</PopoverHeader>
17 <PopoverBody>
18 <Button onClick={() => setIsOpen(!isOpen)}>Click me</Button>
19 <Collapse
20 isOpen={isOpen}
21 onEntered={scheduleUpdate}
22 onExited={scheduleUpdate}
23 >
24 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
25 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
26 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
27 aliquip ex ea commodo consequat.
28 </Collapse>
29 </PopoverBody>
30 </>
31 );
32}
33
34function Example(props) {
35 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…