| 1 |
import styles from '@patternfly/react-styles/css/components/DescriptionList/description-list'; |
| 2 |
import { css } from '@patternfly/react-styles'; |
| 3 |
|
| 4 |
export interface DescriptionListDescriptionProps extends React.HTMLProps<HTMLElement> { |
| 5 |
/** Anything that can be rendered inside of list description */ |
| 6 |
children: React.ReactNode; |
| 7 |
/** Additional classes added to the DescriptionListDescription */ |
| 8 |
className?: string; |
| 9 |
} |
| 10 |
|
| 11 |
export const DescriptionListDescription: React.FunctionComponent<DescriptionListDescriptionProps> = ({ |
| 12 |
children = null, |
| 13 |
className, |
| 14 |
...props |
| 15 |
}: DescriptionListDescriptionProps) => ( |
| 16 |
<dd className={css(styles.descriptionListDescription, className)} {...props}> |
| 17 |
<div className={css(styles.descriptionListText)}>{children}</div> |
| 18 |
</dd> |
| 19 |
); |
| 20 |
DescriptionListDescription.displayName = 'DescriptionListDescription'; |