UNPKG

1.16 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.SimpleListGroup = void 0;
4const tslib_1 = require("tslib");
5const React = tslib_1.__importStar(require("react"));
6const react_styles_1 = require("@patternfly/react-styles");
7const simple_list_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/SimpleList/simple-list"));
8const SimpleListGroup = (_a) => {
9 var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = tslib_1.__rest(_a, ["children", "className", "title", "titleClassName", "id"]);
10 return (React.createElement("section", Object.assign({ className: react_styles_1.css(simple_list_1.default.simpleListSection) }, props),
11 React.createElement("h2", { id: id, className: react_styles_1.css(simple_list_1.default.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
12 React.createElement("ul", { className: react_styles_1.css(className), "aria-labelledby": id }, children)));
13};
14exports.SimpleListGroup = SimpleListGroup;
15exports.SimpleListGroup.displayName = 'SimpleListGroup';
16//# sourceMappingURL=SimpleListGroup.js.map
\No newline at end of file