@nimbus-ds/stepper
Version:
Stepper component for guiding users through multi-step processes
12 lines (10 loc) • 372 B
text/typescript
import type { ControlledStepperProperties } from "./stepper.types";
/**
* Checks if the stepper is in controlled mode.
* @param props - The props of the stepper
* @returns True if the stepper is controlled, false otherwise
*/
export const isControlled = (
props: any
): props is ControlledStepperProperties =>
"selectedStep" in props && "onSelectStep" in props;