@nimbus-ds/stepper
Version:
Stepper component for guiding users through multi-step processes
22 lines (18 loc) • 510 B
text/typescript
import { HTMLAttributes } from "react";
/**
* Represents the visual state of a step
*/
export type StepState = "completed" | "started" | "pending";
export interface StepperItemProperties {
/**
* The step number (0-based index) for this item.
* This is automatically assigned by the parent Stepper component.
*/
step: number;
/**
* The label text to display for this step
*/
label?: string;
}
export type StepperItemProps = StepperItemProperties &
HTMLAttributes<HTMLDivElement>;