import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Content/content'; import { css } from '@patternfly/react-styles'; export enum TextListVariants { ul = 'ul', ol = 'ol', dl = 'dl' } export interface TextListProps extends React.HTMLProps { /** Content rendered within the TextList */ children?: React.ReactNode; /** Additional classes added to the TextList */ className?: string; /** The text list component */ component?: 'ul' | 'ol' | 'dl'; /** Modifies the list to include plain styling */ isPlain?: boolean; } export const TextList: React.FunctionComponent = ({ children = null, className = '', component = TextListVariants.ul, isPlain = false, ...props }: TextListProps) => { const Component: any = component; return ( {children} ); }; TextList.displayName = 'TextList';