UNPKG

@carbon/ibm-products

Version:

Carbon for IBM Products

28 lines (27 loc) 1.16 kB
/** * 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 './InterstitialScreen'; import { EnrichedChildren } from './InterstitialScreenHeader'; type contentRendererArgs = { handleGotoStep?: (value: number) => void; progStep?: number; disableActionButton: (value: disableButtonConfigType) => void; }; export interface InterstitialScreenBodyProps { /** * Provide an optional class to be applied to the containing node. */ className?: string; /** * This is a required callback that has to return the content to render in the body section. * It can be a single child or an array of children depending on your need */ contentRenderer: (config: contentRendererArgs) => ReactElement<EnrichedChildren> | ReactNode; } declare const InterstitialScreenBody: React.ForwardRefExoticComponent<InterstitialScreenBodyProps & React.RefAttributes<HTMLDivElement>>; export default InterstitialScreenBody;