nextuiq
Version:
NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat
23 lines (22 loc) • 590 B
TypeScript
import { ReactNode } from 'react';
export interface Step {
id: string;
title: string;
description?: string;
content: ReactNode;
validation?: (data: any) => Promise<boolean> | boolean;
}
export interface MultiStepProps {
steps: Step[];
onComplete?: (data: any) => void;
onStepChange?: (currentStep: number, data: any) => void;
defaultData?: any;
autoSave?: boolean;
}
export interface StepIndicatorProps {
currentStep: number;
totalSteps: number;
completedSteps: number[];
titles: string[];
onStepClick?: (step: number) => void;
}