{"id":14962660,"url":"https://github.com/homescriptone/svelte-advanced-multistep-form","last_synced_at":"2025-09-30T15:31:34.722Z","repository":{"id":46346989,"uuid":"420557839","full_name":"homescriptone/svelte-advanced-multistep-form","owner":"homescriptone","description":"Create multistep form in few clicks for your Svelte/Routify/Sapper application.","archived":false,"fork":true,"pushed_at":"2021-10-27T08:17:17.000Z","size":5187,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T20:43:17.537Z","etag":null,"topics":["multistep-form","routify","sapperjs","svelte","svelte-form","svelte3"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/svelte-advanced-multistep-form","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edenriquez/svelte-multistep-form","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homescriptone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.buymeacoffee.com/manutheblvcker"]}},"created_at":"2021-10-24T01:08:34.000Z","updated_at":"2022-04-19T08:44:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/homescriptone/svelte-advanced-multistep-form","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fsvelte-advanced-multistep-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fsvelte-advanced-multistep-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fsvelte-advanced-multistep-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fsvelte-advanced-multistep-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homescriptone","download_url":"https://codeload.github.com/homescriptone/svelte-advanced-multistep-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234747845,"owners_count":18880515,"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":["multistep-form","routify","sapperjs","svelte","svelte-form","svelte3"],"created_at":"2024-09-24T13:30:19.512Z","updated_at":"2025-09-30T15:31:34.342Z","avatar_url":"https://github.com/homescriptone.png","language":"Svelte","funding_links":["https://www.buymeacoffee.com/manutheblvcker"],"categories":[],"sub_categories":[],"readme":"# svelte advanced multistep form [![NPM Version](https://badge.fury.io/js/svelte-advanced-multistep-form.svg?style=flat)](https://npmjs.org/package/svelte-advanced-multistep-form)\n\n\nMulti Step Form help to wrap form elements passing down styles to the component to be rendered, also it presents each form step in a ordered and stylish way.\n\n### Demo\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"570\" src =\"./screen/form-demo.png\"\u003e\n\u003c/p\u003e\n\n\n## Install\n\n```\nnpm install svelte-advanced-multistep-form\n```\n\nthen import into your code\n\n```javascript\n  import { Form, Step } from \"svelte-advanced-multistep-form\";\n```\n## Usage\n\nFirst you need to set up the form `stepsDescription`, `formSubtitle`, `formTitle`, `formMethodType`, `prevMessageText` and `nextMessageText` inside `multiStepOptions` that later has to be injected into Form component `\u003cForm {multiStepOptions}\u003e`\n\n```javascript\n  let multiStepOptions = {\n    formTitle : 'Hello world',\n    formSubtitle : 'Welcome to our world',\n    formMethodType : 'POST',\n    prevMessageText : 'Previous',\n    nextMessageText : 'Next',\n    formActionURL:'/',\n    formID : 's-multistep-form',\n    displayIndex : true,\n    svgCircleColor : \"#48DB71\",\n    selectCircleColor : \"red\",\n    selectboxShadowCircleColor :  \"#48DB71\",\n    unselectboxShadowCircleColor : \"#48DB71\",\n    indexblanckColor : 'black',\n    indexColor : 'black',\n    stepsDescription: [{\n        title: \"STEP 1\",\n        subtitle: \"All the details to perform on this step\",\n        icon : \"fa fa-info-circle\"\n      },\n      {\n        title: \"STEP 2\",\n        subtitle: \"All the details to perform on this step\",\n        icon : \"fa fa-info-circle\"\n      }\n    ]\n  }\n```\n\nAfter that you only need to call `Form` and `Step` component in the following way\n\nFor `Step`you can use Font-Awesome icons.\n\n```html\n\u003cForm {multiStepOptions}\u003e\n  \u003cStep\u003e\n   // Here should be your form\n  \u003c/Step\u003e\n\u003c/Form\u003e\n```\n\nYou can customize the form using CSS as you want it. :) \n\n## Submit form data\n\n```html\n\u003cscript\u003e \nimport axios from \"axios\";\nimport { Form, Step } from \"svelte-advanced-multistep-form\";\n\nllet multiStepOptions = {\n    formTitle : 'Hello world',\n    formSubtitle : 'Welcome to our world',\n    formMethodType : 'POST',\n    prevMessageText : '\u003cbutton\u003ePrevious\u003cbutton\u003e',\n    nextMessageText : '\u003cbutton\u003eNext\u003c/button\u003e',\n    formActionURL:'/',\n    formID : 's-multistep-form',\n    displayIndex : true,\n    svgCircleColor : \"#48DB71\",\n    selectCircleColor : \"red\",\n    selectboxShadowCircleColor :  \"#48DB71\",\n    unselectboxShadowCircleColor : \"#48DB71\",\n    indexblanckColor : 'black',\n    indexColor : 'black',\n    stepsDescription: [{\n        title: \"STEP 1\",\n        subtitle: \"All the details to perform on this step\",\n        icon : \"fa fa-info-circle\"\n      },\n      {\n        title: \"STEP 2\",\n        subtitle: \"All the details to perform on this step\",\n        icon : \"fa fa-info-circle\"\n      }\n    ]\n  };\nlet myInputValue; \n\nconst handleSubmit = () =\u003e {\n  const formValues = {\n    firstStepInput: myInputValue,\n  };\n  axios.post('http://my-internal-api/submit', formValues)\n  myInputValue = ''\n}\n\u003c/script\u003e\n\n\u003cForm {multiStepOptions}\u003e\n  \u003cStep\u003e\n   \u003cinput\n    class=\"your-custom-class\"\n    id=\"form-field\"\n    bind:value={myInputValue}\n    placeholder=\"value here...\" /\u003e \n  \u003c/Step\u003e\n  \u003cStep\u003e\n    \u003cbutton\n      class=\"your-custom-class\"\n      on:click|preventDefault={handleSubmit}\u003e\n      Save me\n    \u003c/button\u003e\n  \u003c/Step\u003e\n\u003c/Form\u003e\n```\n\n## Examples \n\ncheckout `/examples` folder, run the following commands in order to run examples:\n\n```bash\ncd examples\nnpm i \nnpm run dev\n```\n\nGo to http://localhost:5000 to see it in action 🔥\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fsvelte-advanced-multistep-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomescriptone%2Fsvelte-advanced-multistep-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fsvelte-advanced-multistep-form/lists"}