import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/List/list'; import { css } from '@patternfly/react-styles'; export interface ListItemProps extends React.HTMLProps { /** Icon for the list item */ icon?: React.ReactNode | null; /** Anything that can be rendered inside of list item */ children: React.ReactNode; } export const ListItem: React.FunctionComponent = ({ icon = null, children = null, ...props }: ListItemProps) => (
  • {icon && {icon}} {children}
  • ); ListItem.displayName = 'ListItem';