Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fgrreloaded/rigidui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Multi-Step Form Wrapper component breaks down complex forms into manageable steps, providing clear navigation, validation at each step, and features like auto-save and progress tracking. Perfect for onboarding flows, surveys, and detailed data collection.Installation
Usage
- Preview
- Code
Features
Step-by-Step Flow
Guide users through complex forms with a clear step-by-step interface and visual progress tracking.
Zod Validation
Comprehensive step-by-step validation with Zod schemas, custom error messages, and validation error callbacks.
Auto-Save & Persistence
Automatically save form progress to localStorage with configurable debouncing and persistent form state.
Smooth Animations
Beautiful step transitions with configurable animation duration and seamless user experience.
Flexible Configuration
Highly customizable with step lifecycle hooks, optional steps, progress bars, and accessibility features.
TypeScript Support
Full TypeScript support with type inference and comprehensive type definitions.
API Reference
MultiStepFormWrapper
The main container component that manages multi-step form state and navigation.Step components to render within the form.
Callback function called when the form is completed.
Initial data for the form.
Zod schema for overall form validation.
Additional class names for styling.
Whether to show the step indicator.
Whether to show the step title and description.
Whether to show progress bar with percentage.
Whether to allow skipping to other steps.
Position of the navigation buttons.
Text for the next button.
Text for the previous button.
Text for the complete button.
Whether to show a reset button to go back to first step.
Callback function called when the step changes.
Callback function called when step validation fails.
Key for localStorage persistence of form data.
Whether to automatically save form data to localStorage.
Delay in milliseconds for auto-save debouncing.
Whether to animate step transitions.
Duration of step transition animations in milliseconds.
Step
Defines an individual step in the multi-step form.Content to render in this step.
Title displayed for this step.
Description displayed below the title.
Custom validation function for this step.
Zod schema for step-specific validation.
Whether this step can be skipped without validation.
Whether this step is optional.
Custom error message shown when validation fails.
Callback when entering this step.
Callback when exiting this step.
TypeScript Interfaces
MultiStepFormContextType
StepProps
Combine step-level schemas with the overall form schema for comprehensive validation. Step schemas validate individual steps, while the main schema validates the complete form data.