@hhgtech/hhg-components
Version:
Hello Health Group common components
20 lines (19 loc) • 653 B
TypeScript
import React, { ReactNode } from 'react';
export type StepRendererContextType = {
currentStep: number;
setCurrentStep: (step: number) => void;
nextStep: () => void;
prevStep: () => void;
setMaxStep: (maxStep: number) => void;
};
export declare const StepRendererContext: React.Context<StepRendererContextType>;
export type StepRendererItemShareProps = {
isActive?: boolean;
stepIndex: number;
alwaysRender?: boolean;
};
export type Props = {
children: ReactNode;
onStepChange?(step: number): void;
};
export declare const StepRenderer: ({ children, onStepChange }: Props) => React.JSX.Element;