@carbon/ibm-products
Version:
Carbon for IBM Products
50 lines (48 loc) • 1.97 kB
JavaScript
/**
* Copyright IBM Corp. 2020, 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_index = require("../../node_modules/classnames/index.js");
const require_settings = require("../../settings.js");
const require_devtools = require("../../global/js/utils/devtools.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
let _carbon_react = require("@carbon/react");
//#region src/components/DescriptionList/DescriptionListBody.jsx
/**
* Copyright IBM Corp. 2024, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--description-list__body`;
const componentName = "DescriptionListBody";
let DescriptionListBody = react.default.forwardRef(({ children, className, ...rest }, ref) => {
return /* @__PURE__ */ react.default.createElement(_carbon_react.StructuredListBody, {
className: (0, import_classnames.default)(blockClass, className),
ref,
...require_devtools.getDevtoolsProps(componentName),
...rest
}, children);
});
DescriptionListBody.propTypes = {
/** Provide the contents of the node */
children: prop_types.default.node,
/** Provide an optional class to be applied to the containing node */
className: prop_types.default.string
};
DescriptionListBody = require_settings.pkg.checkComponentEnabled(DescriptionListBody, componentName);
DescriptionListBody.displayName = componentName;
//#endregion
Object.defineProperty(exports, "DescriptionListBody", {
enumerable: true,
get: function() {
return DescriptionListBody;
}
});