Giter VIP home page Giter VIP logo

multistep-registration-form's Introduction

Multistep Registration Form

This project implements a multi-step registration form built with Next.js and styled using Shadcn UI library and Tailwind CSS Framework.

Form Validation

Validation within the form is facilitated by the react-hook-form library, ensuring data integrity and accuracy throughout the registration process.

The required data for registration includes:

  • First name
  • Last name
  • Email
  • Password
  • Bio
  • Profile picture

Additionally, the following settings are defaulted to true:

  • Notification settings is by default set to true
  • Security settings is by default set to true

Components

Feature sliced design is used for the component structure. Feature-Sliced Design (FSD) is an architectural methodology for scaffolding front-end applications. Simply put, it's a compilation of rules and conventions on organizing code. The main purpose of this methodology is to make the project more understandable and structured in the face of ever-changing business requirements.

For more information about FSD, visit https://feature-sliced.design/.

State Management

For managing state across multiple steps, this project uses the Zustand state management library.

There are two methods inside the registration store:

  • updateRegistration: This method is utilized to update the progression of steps within the registration process.
  • setActiveStep: This method allows for the activation of a specific step while deactivating others, facilitating seamless navigation through the registration flow.
  • setDoneStep: Indicates if a step in the registration process is completed.
  • setWarningStep: Alerts users about incomplete or problematic steps.
  • next: Proceeds to the next step in the registration process.
  • previous: Returns to the previous step in the registration process.

Getting Started

First, install all the dependencies:

npm install
# or
yarn i
# or
pnpm i
# or
bun install

After that, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

multistep-registration-form's People

Contributors

theorcdev avatar

Stargazers

Fernando Bold avatar  avatar Joey avatar Wemersive, Inc avatar ido barnea avatar Darren Bennett avatar

Watchers

 avatar

Forkers

dazeb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.