UNPKG

598 BJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import styles from '@patternfly/react-styles/css/components/List/list';
4import { css } from '@patternfly/react-styles';
5export const ListItem = (_a) => {
6 var { icon = null, children = null } = _a, props = __rest(_a, ["icon", "children"]);
7 return (React.createElement("li", Object.assign({ className: css(icon && styles.listItem) }, props),
8 icon && React.createElement("span", { className: css(styles.listItemIcon) }, icon),
9 children));
10};
11ListItem.displayName = 'ListItem';
12//# sourceMappingURL=ListItem.js.map
\No newline at end of file