| 1 |
import styles from '@patternfly/react-styles/css/components/Popover/popover'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export const PopoverContent: React.FunctionComponent<PopoverContentProps> = ({ |
| 5 |
className = null, |
| 6 |
children, |
| 7 |
...props |
| 8 |
}: PopoverContentProps) => ( |
| 9 |
<div className={css(styles.popoverContent, className)} {...props}> |
| 10 |
{children} |
| 11 |
</div> |
| 12 |
); |
| 13 |
PopoverContent.displayName = 'PopoverContent'; |
| 14 |
|
| 15 |
export interface PopoverContentProps extends React.HTMLProps<HTMLDivElement> { |
| 16 |
/** PopoverContent additional class */ |
| 17 |
className?: string; |
| 18 |
/** PopoverContent content */ |
| 19 |
children: React.ReactNode; |
| 20 |
} |