@carbon/ibm-products
Version:
Carbon for IBM Products
51 lines (49 loc) • 1.55 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.
*/
import { pkg } from "../../settings.js";
import React from "react";
import PropTypes from "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 = `${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.forwardRef(({ children, className, stepTitle, translateWithId, ...rest }, ref) => {
return /* @__PURE__ */ React.createElement("div", {
...rest,
className: `${blockClass} ${className}`,
ref
}, children);
});
InterstitialScreenView.displayName = componentName;
InterstitialScreenView.propTypes = {
/**
* Provide the contents of the InterstitialScreenView.
*/
children: PropTypes.node,
/**
* Optional class name for this component.
*/
className: PropTypes.string,
/**
* The label to pass to the ProgressStep component.
*/
stepTitle: PropTypes.string.isRequired,
/**
* Optional method that takes in a message id and returns an internationalized string.
*/
translateWithId: PropTypes.func
};
//#endregion
export { InterstitialScreenView };