| 1 |
import { Popover, Button } from '@patternfly/react-core'; |
| 2 |
|
| 3 |
export const PopoverWithoutHeaderFooterCloseNoPadding: React.FunctionComponent = () => ( |
| 4 |
<div style={{ margin: '50px' }}> |
| 5 |
<Popover |
| 6 |
aria-label="Popover with no header, footer, close button, and padding" |
| 7 |
hasNoPadding |
| 8 |
showClose={false} |
| 9 |
bodyContent={() => ( |
| 10 |
<div> |
| 11 |
This popover has no padding and is intended for use with content that has its own spacing and should touch the |
| 12 |
edges of the popover container. |
| 13 |
</div> |
| 14 |
)} |
| 15 |
withFocusTrap={false /* no focusable content in this example */} |
| 16 |
> |
| 17 |
<Button>Toggle popover</Button> |
| 18 |
</Popover> |
| 19 |
</div> |
| 20 |
); |