{"id":23411026,"url":"https://github.com/parsajiravand/react-form-wizard","last_synced_at":"2025-04-12T03:23:00.142Z","repository":{"id":176509793,"uuid":"658509362","full_name":"parsajiravand/react-form-wizard","owner":"parsajiravand","description":"A react form wizard component with validation and progress bar with no external dependencies which simplifies tab wizard management.","archived":false,"fork":false,"pushed_at":"2023-07-27T11:49:19.000Z","size":114,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T12:39:43.592Z","etag":null,"topics":["form","form-wizard","next","react","reactjs"],"latest_commit_sha":null,"homepage":"https://react-form-wizard-component-document.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parsajiravand.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-26T00:12:21.000Z","updated_at":"2024-06-11T15:44:12.478Z","dependencies_parsed_at":null,"dependency_job_id":"dddc9491-ef39-4752-b401-35f68be9aca9","html_url":"https://github.com/parsajiravand/react-form-wizard","commit_stats":null,"previous_names":["parsajiravand/react-form-wizard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parsajiravand%2Freact-form-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parsajiravand%2Freact-form-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parsajiravand%2Freact-form-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parsajiravand%2Freact-form-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parsajiravand","download_url":"https://codeload.github.com/parsajiravand/react-form-wizard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510740,"owners_count":21116260,"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":["form","form-wizard","next","react","reactjs"],"created_at":"2024-12-22T17:54:37.375Z","updated_at":"2025-04-12T03:23:00.131Z","avatar_url":"https://github.com/parsajiravand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Form Wizard Component\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://react-form-wizard-component-document.netlify.com\"\u003e\u003cimg src=\"https://react-form-wizard-component-document.netlify.app/img/react-form-wizard-icon.png\" alt=\"Demo\" width=\"160\"\u003e\u003c/a\u003e\n  \u003cp align=\"center\"\u003e\nA react form wizard component with validation and progress bar with no external dependencies which simplifies tab wizard management.\u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-form-wizard-component\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-form-wizard-component.svg?style=flat-square\" alt=\"version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/parsajiravand/react-form-wizard-component/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/react-form-wizard-component.svg?style=flat-square\" alt=\"MIT license\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://npmcharts.com/compare/react-form-wizard-component\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/react-form-wizard-component.svg?style=flat-square\" alt=\"downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/parsajiravand/react-form-wizard-component/blob/master/package.json\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/dependencies-none-lightgrey.svg?style=flat-square\" alt=\"no dependencies\"\u003e\n  \u003c/a\u003e\n\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cstrong\u003e\n  \u003ca style=\"font-size:20px\" href=\"https://react-form-wizard-component-document.netlify.app\"\u003e 📚Document\u003c/a\u003e ・\n  \u003ca style=\"font-size:20px\" href=\"https://react-form-wizard-component-document.netlify.app/docs/category/demos\"\u003e🔎 Demos\u003c/a\u003e ・\n  \u003ca style=\"font-size:20px\" href=\"https://react-form-wizard-component-document.netlify.app/docs/Playground/\"\u003e 🔬 Playground\u003c/a\u003e . \n  \u003c/strong\u003e\n    \u003ca style=\"font-size:20px\" href=\"https://react-form-wizard-component-document.netlify.app/blog\"\u003e 📝 Blog\u003c/a\u003e\n  \u003c/strong\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo install the package, you can use npm or yarn:\n\n```bash\nnpm install react-form-wizard-component\n```\n\nor\n\n```bash\nyarn add react-form-wizard-component\n```\n\n\u003c!-- If your are using react v19  install wiht @next--\u003e\n\n### React 19\n\n```bash\nnpm install react-form-wizard-component@next\n```\n\nor\n\n```bash\nyarn add react-form-wizard-component@next\n```\n\n\n\n## Usage\n\nImport the `FormWizard` component and use it in your React application:\n\n```tsx\nimport FormWizard from \"react-form-wizard-component\";\nimport \"react-form-wizard-component/dist/style.css\";\n\nfunction App() {\n  const handleComplete = () =\u003e {\n    console.log(\"Form completed!\");\n    // Handle form completion logic here\n  };\n  const tabChanged = ({\n    prevIndex,\n    nextIndex,\n  }: {\n    prevIndex: number;\n    nextIndex: number;\n  }) =\u003e {\n    console.log(\"prevIndex\", prevIndex);\n    console.log(\"nextIndex\", nextIndex);\n  };\n\n  return (\n    \u003c\u003e\n      \u003cFormWizard\n        shape=\"circle\"\n        color=\"#e74c3c\"\n        onComplete={handleComplete}\n        onTabChange={tabChanged}\n      \u003e\n        \u003cFormWizard.TabContent title=\"Personal details\" icon=\"ti-user\"\u003e\n          {/* Add your form inputs and components for the frst step */}\n          \u003ch1\u003eFirst Tab\u003c/h1\u003e\n          \u003cp\u003eSome content for the first tab\u003c/p\u003e\n        \u003c/FormWizard.TabContent\u003e\n        \u003cFormWizard.TabContent title=\"Additional Info\" icon=\"ti-settings\"\u003e\n          \u003ch1\u003eSecond Tab\u003c/h1\u003e\n          \u003cp\u003eSome content for the second tab\u003c/p\u003e\n        \u003c/FormWizard.TabContent\u003e\n        \u003cFormWizard.TabContent title=\"Last step\" icon=\"ti-check\"\u003e\n          \u003ch1\u003eLast Tab\u003c/h1\u003e\n          \u003cp\u003eSome content for the last tab\u003c/p\u003e\n        \u003c/FormWizard.TabContent\u003e\n      \u003c/FormWizard\u003e\n      {/* add style */}\n      \u003cstyle\u003e{`\n        @import url(\"https://cdn.jsdelivr.net/gh/lykmapipo/themify-icons@0.1.2/css/themify-icons.css\");\n      `}\u003c/style\u003e\n    \u003c/\u003e\n  );\n}\n\nexport default App;\n```\n\n\n## Examples\n\nYou can find examples of using the `react-form-wizard-component` in the [examples](https://react-form-wizard-component-document.netlify.app/docs/category/demos) directory.\n\n## License\n\nThis package is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.\n\nPlease note that this is a basic README.md template, and you may need to modify it further to match your specific package and requirements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparsajiravand%2Freact-form-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparsajiravand%2Freact-form-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparsajiravand%2Freact-form-wizard/lists"}