Form Progress
Animated progress bar with logo and step counter, using spring-based transitions between steps.
Demo controls — click to simulate step navigation
Features
- Spring animation — Progress bar animates with spring physics between steps
- Fade in/out — Bar and label fade based on showProgress prop
- Step counter — Auto-generated 'X of Y' label with uppercase tracking
- Custom logo — Pass any logo element or use the default
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| currentStep | number | - | Current step index (0-based) |
| totalSteps | number | - | Total number of steps |
| logo | ReactNode | - | Custom logo element |
| showProgress | boolean | true | Whether to show the progress bar |
| stepLabel | string | - | Custom step label (defaults to 'X of Y') |
| showStepLabel | boolean | true | Whether to show the step counter text |