import { Popover, Button } from '@patternfly/react-core'; export const PopoverCloseUncontrolled: React.FunctionComponent = () => (
Popover header
} bodyContent={(hide) => (
All the content props (headerContent, bodyContent, footerContent) can take a function which the popover component passes the hide function to which can be used to close the popover after some user interaction.
)} footerContent="Popover footer" > );