import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/DescriptionList/description-list'; import { css } from '@patternfly/react-styles'; export interface DescriptionListTermProps extends React.HTMLProps { /** Anything that can be rendered inside of list term */ children: React.ReactNode; /** Icon that is rendered inside of list term to the left side of the children */ icon?: React.ReactNode; /** Additional classes added to the DescriptionListTerm */ className?: string; } export const DescriptionListTerm: React.FunctionComponent = ({ children, className, icon, ...props }: DescriptionListTermProps) => (
{icon ? {icon} : null} {children}
); DescriptionListTerm.displayName = 'DescriptionListTerm';