Multi-step Form
A solution to the Frontend Mentor multi-step form challenge, with per-step validation and a final summary.
- Next.js
- React
- TypeScript
- Tailwind CSS
- shadcn/ui

Problem
The Frontend Mentor challenge asked for a form split into steps that allowed people to go back and edit selections, show a summary before confirming, and validate missing fields, malformed emails, and steps without a selection. It also required a responsive layout and hover and focus states.
Role
I implemented the solution with Next.js, React, TypeScript, Tailwind CSS, and shadcn/ui components, using React Hook Form to share the form state.
Decisions
- React Hook Form as shared state.
The global React Hook Form context let the steps and their components read and update the same form without passing every value through props.
- Per-step validation.
Each step checks its own requirements before advancing: a missing field, an email with the wrong format, and an empty selection. Messages appear in the corresponding step.
- Summary and confirmation.
The final step gathers the selections into an editable summary and asks for confirmation before closing the flow, so people can correct anything before submitting.
- Coherent typography and visual system.
The Ubuntu typeface is configured through the --font-sans variable and combined with the shadcn and Tailwind tokens to keep the same scale and hierarchy across every step.
Result
The form lets people complete and review each step, go back and edit, validate fields and selections, and confirm a final summary, with an adaptive layout and visible focus states.