| 1 |
import styles from '@patternfly/react-styles/css/components/Popover/popover'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export interface PopoverBodyProps extends React.HTMLProps<HTMLDivElement> { |
| 5 |
/** Popover body id */ |
| 6 |
id: string; |
| 7 |
/** Popover body content */ |
| 8 |
children: React.ReactNode; |
| 9 |
/** Classes to be applied to the popover body. */ |
| 10 |
className?: string; |
| 11 |
} |
| 12 |
|
| 13 |
export const PopoverBody: React.FunctionComponent<PopoverBodyProps> = ({ |
| 14 |
children, |
| 15 |
id, |
| 16 |
className, |
| 17 |
...props |
| 18 |
}: PopoverBodyProps) => ( |
| 19 |
<div className={css(styles.popoverBody, className)} id={id} {...props}> |
| 20 |
{children} |
| 21 |
</div> |
| 22 |
); |
| 23 |
PopoverBody.displayName = 'PopoverBody'; |