@carbon/ibm-products
Version:
Carbon for IBM Products
34 lines • 1.55 kB
TypeScript
/**
* Copyright IBM Corp. 2024, 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.
*/
import React, { ReactElement, ReactNode } from 'react';
import { disableButtonConfigType } from './context';
import { EnrichedChildren } from './InterstitialScreenHeader';
type contentRendererArgs = {
handleGotoStep?: (value: number) => void;
progStep?: number;
disableActionButton: (value: disableButtonConfigType) => void;
};
export interface InterstitialScreenBodyProps {
/**
* Optional static content for body
*/
children?: ReactNode;
/**
* Provide an optional class to be applied to the containing node.
*/
className?: string;
/**
*You can provide content either through a callback (contentRenderer) or as static children—but not both.
* If both are provided, contentRenderer always takes precedence. This optional callback should return the content
* to be rendered in the body section, which can be either a single element or an array of elements based on your needs.
* If internal state access isn’t required, you can simply use static children instead
*/
contentRenderer?: (config: contentRendererArgs) => ReactElement<EnrichedChildren> | ReactNode;
}
declare const InterstitialScreenBody: React.ForwardRefExoticComponent<InterstitialScreenBodyProps & React.RefAttributes<HTMLDivElement>>;
export default InterstitialScreenBody;
//# sourceMappingURL=InterstitialScreenBody.d.ts.map