{"id":21408532,"url":"https://github.com/ebulku/next-stepper","last_synced_at":"2025-04-16T18:52:05.170Z","repository":{"id":264108120,"uuid":"892372761","full_name":"ebulku/next-stepper","owner":"ebulku","description":"A dynamic multi-step form. Built with: Next.js | shadcn/ui | zustand | framer-motion","archived":false,"fork":false,"pushed_at":"2024-12-06T18:15:41.000Z","size":153,"stargazers_count":63,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T05:34:21.364Z","etag":null,"topics":["framer-motion","nextjs","nextjs15","shadcn-ui","zustand"],"latest_commit_sha":null,"homepage":"https://next-stepper.vercel.app","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/ebulku.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-11-22T01:43:38.000Z","updated_at":"2025-03-24T11:08:46.000Z","dependencies_parsed_at":"2025-01-23T04:23:28.929Z","dependency_job_id":"1751281a-5f63-407a-8a0d-1083b342ab31","html_url":"https://github.com/ebulku/next-stepper","commit_stats":null,"previous_names":["ebulku/next-stepper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebulku%2Fnext-stepper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebulku%2Fnext-stepper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebulku%2Fnext-stepper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebulku%2Fnext-stepper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebulku","download_url":"https://codeload.github.com/ebulku/next-stepper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249266646,"owners_count":21240792,"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":["framer-motion","nextjs","nextjs15","shadcn-ui","zustand"],"created_at":"2024-11-22T17:16:27.882Z","updated_at":"2025-04-16T18:52:05.151Z","avatar_url":"https://github.com/ebulku.png","language":"TypeScript","funding_links":[],"categories":["Libs and Components","Components","Components \u0026 Libraries"],"sub_categories":[],"readme":"# next-stepper\n\nA dynamic multi-step form built with **Next.js** and styled using [shadcn/ui](https://ui.shadcn.com/). This project showcases how to create smooth, step-based workflows with modern components and responsive design.\n\n## Preview\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://api.microlink.io/?url=https%3A%2F%2Fnext-stepper.vercel.app%2Fextended\u0026overlay.browser=dark\u0026overlay.background=linear-gradient%28225deg%2C+%23FF057C+0%25%2C+%238D0B93+50%25%2C+%23321575+100%25%29\u0026screenshot=true\u0026embed=screenshot.url\" alt=\"Home Page\" style=\"max-width: 100%;\" \u003e\n\u003c/div\u003e\n\n## Features\n\n- 🎯 Dynamic multi-step navigation with progress tracking\n- 🔄 Conditional step filtering based on previous selections\n- 📱 Fully responsive and mobile-friendly\n- 🎨 Beautiful UI with shadcn/ui components\n- ⚡ Fast and smooth transitions with Framer Motion\n- 💾 Efficient state management with Zustand\n- 🔍 Optional icons and images for steps\n- 📋 Form completion summary\n\n## Installation\n\n### 1. Install Required Packages\n\n```bash\nnpm install zustand framer-motion\n```\n\n### 2. Install Required shadcn/ui Components\n\n```bash\nnpx shadcn-ui@latest add card button progress\n```\n\n### 3. Copy Component Files\n\nCreate a new file `components/ui/multi-step-form.tsx` and copy the component code from the repository.\n\n## Usage\n\n### Basic Implementation\n\n```tsx\nimport MultiStepForm, { type FormStep } from '@/components/ui/multi-step-form'\n\nconst formSteps: FormStep[] = [\n  {\n    id: 'step-1',\n    title: 'Choose Type',\n    description: 'Optional step description',\n    items: [\n      {\n        id: 'item-1',\n        title: 'Option 1',\n        description: 'Description for option 1',\n        icon: Icon1,                    // Optional: Lucide icon\n        image: '/path/to/image.jpg',    // Optional: Image URL\n        validNextSteps: ['next-item-1'] // Optional: Filter next step options\n      }\n      // More items...\n    ]\n  }\n  // More steps...\n]\n\nexport default function FormContainer() {\n  return \u003cMultiStepForm steps={steps} /\u003e\n}\n```\n\n### Complete Implementation Example\n\nCheck out our live interactive demo to see the form in action, and explore our comprehensive implementation example in the extended form component.\n\n[Demo](https://next-stepper.vercel.app/extended) | [extended-form.tsx](components/extended-form.tsx)\n\n## Packages\n\n- [Next.js](https://nextjs.org/) - The leading React framework\n- [shadcn/ui](https://ui.shadcn.com/) - Modern, customizable component library\n- [Framer Motion](https://www.framer.com/motion/) - Powerful animations\n- [Zustand](https://zustand-demo.pmnd.rs/) - Lightweight state management\n- [Lucide React](https://lucide.dev/) - Beautiful icons\n- [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS\n\n## TODO\n- [x] Demo implementation\n- [x] Add compact pre-built template\n- [x] Add an optional form completion summary\n- [x] Add optional custom form input in the end step\n- [ ] Add optional multi-step form with different imput types\n- [ ] Implement form validation schemas\n- [ ] Add more customization options for step cards\n- [ ] Create more pre-built templates\n- [ ] Support for dynamic step generation\n\n## Contributing\n\nContributions are welcome! Please submit an issue or pull request if you have suggestions or improvements.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febulku%2Fnext-stepper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febulku%2Fnext-stepper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febulku%2Fnext-stepper/lists"}