UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

10 lines 696 B
import { __rest } from "tslib"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import styles from '@patternfly/react-styles/css/components/List/list.mjs'; import { css } from '@patternfly/react-styles'; export const ListItem = (_a) => { var { icon = null, children = null } = _a, props = __rest(_a, ["icon", "children"]); return (_jsxs("li", Object.assign({ className: css(icon && styles.listItem) }, props, { children: [icon && _jsx("span", { className: css(styles.listItemIcon), children: icon }), _jsx("span", { className: icon && css(`${styles.list}__item-text`), children: children })] }))); }; ListItem.displayName = 'ListItem'; //# sourceMappingURL=ListItem.js.map