UNPKG

985 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.FormSection = void 0;
4const tslib_1 = require("tslib");
5const React = tslib_1.__importStar(require("react"));
6const form_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Form/form"));
7const react_styles_1 = require("@patternfly/react-styles");
8const FormSection = (_a) => {
9 var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = tslib_1.__rest(_a, ["className", "children", "title", "titleElement"]);
10 return (React.createElement("section", Object.assign({}, props, { className: react_styles_1.css(form_1.default.formSection, className) }),
11 title && React.createElement(TitleElement, { className: react_styles_1.css(form_1.default.formSectionTitle, className) }, title),
12 children));
13};
14exports.FormSection = FormSection;
15exports.FormSection.displayName = 'FormSection';
16//# sourceMappingURL=FormSection.js.map
\No newline at end of file