import * as React from 'react'; import { css } from '@patternfly/react-styles'; export enum TextListItemVariants { li = 'li', dt = 'dt', dd = 'dd' } export interface TextListItemProps extends React.HTMLProps { /** Content rendered within the TextListItem */ children?: React.ReactNode; /** Additional classes added to the TextListItem */ className?: string; /** The text list item component */ component?: 'li' | 'dt' | 'dd'; } export const TextListItem: React.FunctionComponent = ({ children = null, className = '', component = TextListItemVariants.li, ...props }: TextListItemProps) => { const Component: any = component; return ( {children} ); }; TextListItem.displayName = 'TextListItem';