UNPKG

@patternfly/react-core

Version:

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

12 lines 893 B
import { __rest } from "tslib"; import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/SimpleList/simple-list'; export const SimpleListGroup = (_a) => { var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = __rest(_a, ["children", "className", "title", "titleClassName", "id"]); return (React.createElement("section", Object.assign({ className: css(styles.simpleListSection) }, props), React.createElement("h2", { id: id, className: css(styles.simpleListTitle, titleClassName), "aria-hidden": "true" }, title), React.createElement("ul", { className: css('pf-v5-c-simple-list__list', className), role: "list", "aria-labelledby": id }, children))); }; SimpleListGroup.displayName = 'SimpleListGroup'; //# sourceMappingURL=SimpleListGroup.js.map