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