@carbon/ibm-products
Version:
Carbon for IBM Products
70 lines • 2.18 kB
TypeScript
/**
* Copyright IBM Corp. 2021, 2022
*
* 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, { PropsWithChildren, ReactNode } from 'react';
import PropTypes from 'prop-types';
import '../../global/js/utils/props-helper';
interface Step {
introStep?: boolean;
secondaryLabel?: string;
shouldIncludeStep?: boolean;
title?: ReactNode;
}
interface CreateInfluencerProps {
/**
* Provide an optional class to be applied to the containing node.
*/
className?: string;
/**
* Provide the current step number.
*/
currentStep: number;
/**
* onChange event for Progress Indicator
*/
onClickStep?: (step: number) => void;
/**
* Provide the Set Data.
*/
stepData: Step[];
/**
* Title.
*/
title?: string | undefined;
}
export declare const CreateInfluencer: {
({ className, currentStep, onClickStep, stepData, title, }: PropsWithChildren<CreateInfluencerProps>): React.JSX.Element;
displayName: string;
propTypes: {
/**
* Provide an optional class to be applied to the containing node.
*/
className: PropTypes.Requireable<string>;
/**
* Used to mark the current step on the ProgressIndicator component
*/
currentStep: PropTypes.Validator<number>;
/**
* onChange event for Progress Indicator
*/
onClickStep: PropTypes.Requireable<(...args: any[]) => any>;
/**
* The step data that renders the progress items
*/
stepData: PropTypes.Requireable<PropTypes.InferProps<{
introStep: PropTypes.Requireable<boolean>;
secondaryLabel: PropTypes.Requireable<string>;
shouldIncludeStep: PropTypes.Requireable<boolean>;
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
}>[]>;
/**
* The main title of the full page, displayed in the influencer area.
*/
title: PropTypes.Requireable<string>;
};
};
export {};
//# sourceMappingURL=CreateInfluencer.d.ts.map