import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Card/card'; import { css } from '@patternfly/react-styles'; import { CardContext } from './Card'; export interface CardExpandableContentProps extends React.HTMLProps { /** Content rendered inside the Card Body */ children?: React.ReactNode; /** Additional classes added to the Card Body */ className?: string; } export const CardExpandableContent: React.FunctionComponent = ({ children, className, ...props }: CardExpandableContentProps) => ( {({ isExpanded }) => isExpanded ? (
{children}
) : null } ); CardExpandableContent.displayName = 'CardExpandableContent';