{"id":22869996,"url":"https://github.com/mattdeboard/react-multistep-form","last_synced_at":"2026-04-11T13:07:33.106Z","repository":{"id":267326192,"uuid":"900895287","full_name":"mattdeboard/react-multistep-form","owner":"mattdeboard","description":"An implementation of a \"form wizard\" (multistep form) using my useFormStateMachine hook, based on an automobile insurance quote tool","archived":false,"fork":false,"pushed_at":"2024-12-09T18:29:34.000Z","size":200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:59:28.517Z","etag":null,"topics":["forms","nextjs","react","react-hook-form","tailwindcss","typescript","wizard-steps"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattdeboard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-09T17:05:41.000Z","updated_at":"2024-12-09T18:29:37.000Z","dependencies_parsed_at":"2024-12-09T18:29:19.495Z","dependency_job_id":"ab20a7de-2fb7-4e0e-bad9-518da6a934a3","html_url":"https://github.com/mattdeboard/react-multistep-form","commit_stats":null,"previous_names":["mattdeboard/react-multistep-form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattdeboard%2Freact-multistep-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattdeboard%2Freact-multistep-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattdeboard%2Freact-multistep-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattdeboard%2Freact-multistep-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattdeboard","download_url":"https://codeload.github.com/mattdeboard/react-multistep-form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246460057,"owners_count":20781036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forms","nextjs","react","react-hook-form","tailwindcss","typescript","wizard-steps"],"created_at":"2024-12-13T13:13:17.619Z","updated_at":"2025-12-30T23:14:47.622Z","avatar_url":"https://github.com/mattdeboard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Multistep Form\n\nThis repo exists as a reference utilization of my [`useFormStateMachine`](https://gist.github.com/mattdeboard/f5ff93d6f3db78aae3aaf50002bad154)\nhook. I used Root's [quote builder](https://quote.joinroot.com/landing)\nas the model application.\n\n## Architecture\n\n### `useFormStateMachine`\n\nAs mentioned above, this repo is meant to demonstrate usage of\n`useFormStateMachine`. You can see that hook's invocation\n[here](./src/app/quote-builder/layout.tsx#L22).\n\nIn fact, all of the logic for navigating through \u0026 submitting the form\nlive in that same module. This makes individual sub-forms (e.g.\n[homeowner status](./src/app/quote-builder/homeowner/page.tsx),\n[marital status](./src/app/quote-builder/maritalStatus/page.tsx), etc.)\nextremely simple. This demonstrates the strength of\n`useFormStateMachine` in separating the form's navigational concerns\nfrom the data-gathering concerns of the form. Each sub-form in the\nwizard is a straightforward collection of text and form fields, rather\nthan being [\"complected\"](https://www.youtube.com/watch?v=SxdOUGdseq4)\nwith all the conditional logic inherent in a multi-step form.\n\n### Routing\n\nThis is a [Next.js](https://nextjs.org) project bootstrapped with\n[`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).\n\nThis application uses NextJS's [App\nRouter](https://nextjs.org/docs/app/building-your-application/routing).\nI chose the App router, instead of the Pages router, because I prefer\nthe nested folder-based routing system. The Pages router would have been\nfine, given the size \u0026 simplicity of this application. I simply prefer\nthe App router paradigm.\n\nHowever, nearly all routing here is done client-side. All components are\nclient-side components (hence the `'use client'` declaration at the top\nof each file).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattdeboard%2Freact-multistep-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattdeboard%2Freact-multistep-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattdeboard%2Freact-multistep-form/lists"}