UNPKG

@carbon/ibm-products

Version:
36 lines (34 loc) 1.24 kB
/** * 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. */ import { __toESM } from "../../_virtual/_rolldown/runtime.js"; import { require_classnames } from "../../node_modules/classnames/index.js"; import { pkg } from "../../settings.js"; import React, { forwardRef } from "react"; import PropTypes from "prop-types"; //#region src/components/CreateTearsheet/CreateTearsheetDivider.tsx /** * Copyright IBM Corp. 2021, 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__ */ __toESM(require_classnames()); const blockClass = `${pkg.prefix}--tearsheet-create__section--divider`; const CreateTearsheetDivider = forwardRef(({ className, ...rest }, ref) => { return /* @__PURE__ */ React.createElement("span", { ...rest, ref, className: (0, import_classnames.default)(blockClass, className) }); }); CreateTearsheetDivider.propTypes = { /** * Sets an optional className to be added to the tearsheet divider */ className: PropTypes.string }; //#endregion export { CreateTearsheetDivider };