@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
15 lines • 960 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModalBody = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_styles_1 = require("@patternfly/react-styles");
const modal_box_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/ModalBox/modal-box"));
const ModalBody = (_a) => {
var { children, className, 'aria-label': ariaLabel, role } = _a, props = tslib_1.__rest(_a, ["children", "className", 'aria-label', "role"]);
const defaultModalBodyRole = ariaLabel ? 'region' : undefined;
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ "aria-label": ariaLabel, role: role || defaultModalBodyRole, className: (0, react_styles_1.css)(modal_box_1.default.modalBoxBody, className) }, props, { children: children })));
};
exports.ModalBody = ModalBody;
exports.ModalBody.displayName = 'ModalBody';
//# sourceMappingURL=ModalBody.js.map
;