UNPKG

594 BTypeScriptView Raw
1import * as React from 'react';
2export interface StepperContextType {
3 activeStep: number;
4 alternativeLabel: boolean;
5 connector: React.ReactNode;
6 nonLinear: boolean;
7 orientation: 'horizontal' | 'vertical';
8}
9/**
10 * Provides information about the current step in Stepper.
11 */
12declare const StepperContext: React.Context<{} | StepperContextType>;
13/**
14 * Returns the current StepperContext or an empty object if no StepperContext
15 * has been defined in the component tree.
16 */
17export declare function useStepperContext(): StepperContextType | {};
18export default StepperContext;