@nimbus-ds/stepper
Version:
Stepper component for guiding users through multi-step processes
22 lines (21 loc) • 471 B
text/typescript
/**
* Context value provided by StepperContext to share state between stepper components
*/
export interface StepperContextValue {
/**
* The total number of steps in the stepper
*/
totalSteps: number;
/**
* The currently active step (0-based index)
*/
activeStep: number;
/**
* The currently selected step (0-based index)
*/
selectedStep?: number;
/**
* Callback to handle step selection
*/
onSelect?: (step: number) => void;
}