UNPKG

@spark-web/vertical-stepper

Version:

--- title: Vertical Stepper storybookPath: data-display-vertical-stepper isExperimentalPackage: true ---

20 lines (19 loc) 619 B
/// <reference types="react" /> interface StepperContextProps { activeIndex: number; } export declare const StepperProvider: ({ activeIndex, children, }: { activeIndex: number; children: React.ReactNode; }) => JSX.Element; export declare const useStepper: () => StepperContextProps; interface StepContextProps { stepIndex: number; isActive: boolean; isCompleted: boolean; } export declare const StepProvider: ({ stepIndex, isActive, isCompleted, children, }: StepContextProps & { children: React.ReactNode; }) => JSX.Element; export declare const useStep: () => StepContextProps; export {};