@carbon/ibm-products
Version:
Carbon for IBM Products
54 lines (52 loc) • 1.82 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_settings = require("../../settings.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
//#region src/components/InterstitialScreen/InterstitialScreenView.tsx
/**
* Copyright IBM Corp. 2023, 2025
*
* 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 blockClass = `${require_settings.pkg.prefix}--interstitial-screen-view`;
const componentName = "InterstitialScreenView";
/**
* An Onboarding component intended to be used as the child elements of the InterstitialScreen body component.
*/
const InterstitialScreenView = react.default.forwardRef(({ children, className, stepTitle, translateWithId, ...rest }, ref) => {
return /* @__PURE__ */ react.default.createElement("div", {
...rest,
className: `${blockClass} ${className}`,
ref
}, children);
});
InterstitialScreenView.displayName = componentName;
InterstitialScreenView.propTypes = {
/**
* Provide the contents of the InterstitialScreenView.
*/
children: prop_types.default.node,
/**
* Optional class name for this component.
*/
className: prop_types.default.string,
/**
* The label to pass to the ProgressStep component.
*/
stepTitle: prop_types.default.string.isRequired,
/**
* Optional method that takes in a message id and returns an internationalized string.
*/
translateWithId: prop_types.default.func
};
//#endregion
exports.InterstitialScreenView = InterstitialScreenView;