UNPKG

850 BJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import { css } from '@patternfly/react-styles';
4import styles from '@patternfly/react-styles/css/components/SimpleList/simple-list';
5export const SimpleListGroup = (_a) => {
6 var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = __rest(_a, ["children", "className", "title", "titleClassName", "id"]);
7 return (React.createElement("section", Object.assign({ className: css(styles.simpleListSection) }, props),
8 React.createElement("h2", { id: id, className: css(styles.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
9 React.createElement("ul", { className: css(className), "aria-labelledby": id }, children)));
10};
11SimpleListGroup.displayName = 'SimpleListGroup';
12//# sourceMappingURL=SimpleListGroup.js.map
\No newline at end of file