@slashid/react
Version:
React SDK for the /id platform
17 lines • 709 B
TypeScript
import { OnboardingAPI, OnboardingState } from "./onboarding.types";
export type OnboardingContextType = {
state: OnboardingState;
api: OnboardingAPI;
};
export declare const OnboardingContext: import("react").Context<OnboardingContextType>;
export type OnboardingProps = {
children: React.ReactNode;
onError?: () => void;
};
/**
* Renders the onboarding flow based on the children provided.
* Wrap any step you want to render in the <OnboardgingStep> component.
* They will be rendered in the order they are provided.
*/
export declare function Onboarding({ children, onError }: OnboardingProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=onboarding.component.d.ts.map