{"id":15684470,"url":"https://github.com/ctrlplusb/vue-zod-form","last_synced_at":"2025-04-28T15:20:55.822Z","repository":{"id":50492039,"uuid":"469670329","full_name":"ctrlplusb/vue-zod-form","owner":"ctrlplusb","description":"A composition based API forms helper for Vue 3 projects that utilise TypeScript.","archived":false,"fork":false,"pushed_at":"2022-03-14T09:50:12.000Z","size":81,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T10:44:48.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/ctrlplusb.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}},"created_at":"2022-03-14T09:47:56.000Z","updated_at":"2024-10-17T16:47:41.000Z","dependencies_parsed_at":"2022-08-19T03:00:43.228Z","dependency_job_id":null,"html_url":"https://github.com/ctrlplusb/vue-zod-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fvue-zod-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fvue-zod-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fvue-zod-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fvue-zod-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrlplusb","download_url":"https://codeload.github.com/ctrlplusb/vue-zod-form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336400,"owners_count":21573189,"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":[],"created_at":"2024-10-03T17:17:24.327Z","updated_at":"2025-04-28T15:20:55.799Z","avatar_url":"https://github.com/ctrlplusb.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e WIP\n\n# vue-zod-form\n\nA composition based API forms helper for Vue 3 projects that utilise TypeScript.\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport * as z from \"zod\";\nimport { useZodForm } from \"vue-zod-form\";\n\nconst formSchema = z.object({\n  name: z.string().nonempty(),\n  email: z.string().nonempty().email(),\n  password: z.string().nonempty().min(8),\n});\n\nconst { field, handleSubmit, isSubmitting } = useZodForm(formSchema);\n\nconst name = field(\"name\");\nconst email = field(\"email\");\nconst password = field(\"password\");\n\nconst onSubmit = handleSubmit(async (data) =\u003e {\n  await new Promise((resolve) =\u003e setTimeout(resolve, 2000));\n  alert(JSON.stringify(data, null, 2));\n});\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cform @submit=\"onSubmit\"\u003e\n    \u003cTextInput\n      label=\"Email\"\n      type=\"email\"\n      :error=\"email.error\"\n      :value=\"email.value\"\n      @change=\"email.onChange\"\n      @blur=\"email.onBlur\"\n    /\u003e\n    \u003cTextInput\n      label=\"Password\"\n      type=\"password\"\n      :error=\"password.error\"\n      :value=\"password.value\"\n      @change=\"password.onChange\"\n      @blur=\"password.onBlur\"\n    /\u003e\n    \u003cbutton :aria-busy=\"isSubmitting\"\u003eSubmit\u003c/button\u003e\n  \u003c/form\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Fvue-zod-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrlplusb%2Fvue-zod-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Fvue-zod-form/lists"}