UNPKG

@patternfly/react-core

Version:

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

14 lines 720 B
import { __rest } from "tslib"; import * as React from 'react'; import { css } from '@patternfly/react-styles'; import { Divider } from '../Divider'; export const TreeViewList = (_a) => { var { isNested = false, toolbar, children } = _a, props = __rest(_a, ["isNested", "toolbar", "children"]); return (React.createElement(React.Fragment, null, toolbar && (React.createElement(React.Fragment, null, toolbar, React.createElement(Divider, null))), React.createElement("ul", Object.assign({ className: css('pf-c-tree-view__list'), role: isNested ? 'group' : 'tree' }, props), children))); }; TreeViewList.displayName = 'TreeViewList'; //# sourceMappingURL=TreeViewList.js.map