UNPKG

571 BTypeScriptView Raw
1import * as React from 'react';
2export interface StepContextType {
3 index: number;
4 last: boolean;
5 expanded: boolean;
6 icon: React.ReactNode;
7 active: boolean;
8 completed: boolean;
9 disabled: boolean;
10}
11/**
12 * Provides information about the current step in Stepper.
13 */
14declare const StepContext: React.Context<{} | StepContextType>;
15/**
16 * Returns the current StepContext or an empty object if no StepContext
17 * has been defined in the component tree.
18 */
19export declare function useStepContext(): StepContextType | {};
20export default StepContext;