Skip to content

lazy4gyan/multistepform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Frontend Mentor - Multi-step form solution

This is a solution to the Multi-step form challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • Complete each step of the sequence
  • Go back to a previous step to update their selections
  • See a summary of their selections on the final step and confirm their order
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page
  • Receive form validation messages if:
    • A field has been missed
    • The email address is not formatted correctly
    • The phone number is not formatted correctly
    • No plan is selected
    • A step will not submitted, until fields having validation check, pass the avialable validations.

Links

My process

I started this challenge by following these steps:

  • Analyzing the design for similarities such as input fields, labels, buttons, etc.
  • Creating a layout component to achieve the desired layout.
  • Creating reusable components such as input fields, labels, buttons, forms, cards, and checkboxes.
  • Using the Context API for state management and React Hook Form for form control and validation.

Built with

  • Semantic HTML5 markup
  • CSS module and custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • react-hook-form - React library
  • SCSS - For styles

What I learned

I have learned a react-hook-form which is a react library, for form validation in React applications.

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published