| 1 |
import { css } from '@patternfly/react-styles'; |
| 2 |
import styles from '@patternfly/react-styles/css/components/Card/card'; |
| 3 |
|
| 4 |
export interface CardSubtitleProps { |
| 5 |
/** Content rendered inside the description. */ |
| 6 |
children?: React.ReactNode; |
| 7 |
/** Id of the description. */ |
| 8 |
id?: string; |
| 9 |
} |
| 10 |
|
| 11 |
export const CardSubtitle: React.FunctionComponent<CardSubtitleProps> = ({ |
| 12 |
children = null, |
| 13 |
id = '', |
| 14 |
...props |
| 15 |
}: CardSubtitleProps) => ( |
| 16 |
<div {...props} id={id} className={css(styles.cardSubtitle)}> |
| 17 |
{children} |
| 18 |
</div> |
| 19 |
); |
| 20 |
CardSubtitle.displayName = 'CardSubtitle'; |