UNPKG

mod-arch-shared

Version:

Shared UI components and utilities for modular architecture micro-frontend projects

9 lines 760 B
import * as React from 'react'; import { FormSection as PFFormSection, Content } from '@patternfly/react-core'; import './FormSection.scss'; // Remove once https://github.com/patternfly/patternfly/issues/6663 is fixed const FormSection = ({ description, title, titleElement: TitleElement = 'div', ...props }) => (React.createElement(PFFormSection, { ...props, titleElement: description ? 'div' : TitleElement, title: description ? (React.createElement(React.Fragment, null, React.createElement(TitleElement, { className: "pf-v6-c-form__section-title" }, title), React.createElement(Content, { component: "p", className: "kf-form-section__desc" }, description))) : (title) })); export default FormSection; //# sourceMappingURL=FormSection.js.map