@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
16 lines • 985 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormSection = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const form_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Form/form"));
const react_styles_1 = require("@patternfly/react-styles");
const FormSection = (_a) => {
var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = tslib_1.__rest(_a, ["className", "children", "title", "titleElement"]);
return (React.createElement("section", Object.assign({}, props, { className: react_styles_1.css(form_1.default.formSection, className) }),
title && React.createElement(TitleElement, { className: react_styles_1.css(form_1.default.formSectionTitle, className) }, title),
children));
};
exports.FormSection = FormSection;
exports.FormSection.displayName = 'FormSection';
//# sourceMappingURL=FormSection.js.map
;