{"id":17132548,"url":"https://github.com/dyalicode/qwik-formly","last_synced_at":"2025-03-24T05:34:18.283Z","repository":{"id":180445389,"uuid":"664642287","full_name":"dyaliCode/qwik-formly","owner":"dyaliCode","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-27T11:13:50.000Z","size":494,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T11:24:48.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dyaliCode.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":"2023-07-10T12:32:37.000Z","updated_at":"2023-08-01T22:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"716f0b18-192f-41e6-b432-b03a5c2b82f5","html_url":"https://github.com/dyaliCode/qwik-formly","commit_stats":null,"previous_names":["dyalicode/qwik-formly"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fqwik-formly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fqwik-formly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fqwik-formly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyaliCode%2Fqwik-formly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyaliCode","download_url":"https://codeload.github.com/dyaliCode/qwik-formly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217417,"owners_count":20579291,"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-14T19:27:24.492Z","updated_at":"2025-03-24T05:34:18.257Z","avatar_url":"https://github.com/dyaliCode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qwik Formly\n\nby [@kamalkech](https://github.com/kamalkech)\n\n## Introduction\n\n- ⚡️ Generate dynamic and reactive forms.\n- 😍 Easy to extend with custom field type, custom validation.\n\n## Documentation\n\nFor qwik it will be soon here [Link Documentation](https://www.formly-js.com/)\n\n## Quick Installation\n\n```shell\nnpm install qwik-formly\n```\n\n## Usage\n\n```tsx\nimport { component$, $ } from \"@builder.io/qwik\";\nimport type { DocumentHead } from \"@builder.io/qwik-city\";\nimport { Formly, type Field } from \"qwik-formly\";\n\nexport default component$(() =\u003e {\n  const fields: Field[] = [\n    {\n      type: \"input\", // required\n      name: \"username\", // required\n      attributes: {\n        type: 'text',\n        id: \"username\", // required\n        label: \"Username\", // optional\n        classes: [\"class-username\"],\n        placeholder: 'Username'\n      },\n    },\n    {\n      type: \"input\", // required\n      name: \"email\", // required\n      attributes: {\n        type: 'email',\n        id: \"email\", // required\n        label: \"Email\", // optional\n        classes: [\"class-email\"],\n        placeholder: 'Email'\n      },\n    },\n    {\n      type: \"checkbox\", // required\n      name: \"checkA\", // required\n      attributes: {\n        id: \"checkA\", // required\n        label: \"CheckboxA\", // optional\n        classes: [\"class-checkbox\"], // optional\n      },\n      // required\n      extra: {\n        items: [\n          {\n            name: \"item1\",\n            value: \"value1\",\n            title: \"Value 1\",\n          },\n          {\n            name: \"item2\",\n            value: \"value2\",\n            title: \"Value 2\",\n          },\n        ],\n      },\n      prefix: {\n        tag: 'fieldset',\n        classes: ['class1', 'class2'],\n      }\n    },\n  ]\n\n  const onUpdate = $((data: any) =\u003e {\n    console.log('onUpdate', data);\n  })\n\n  const onSubmit = $((data: any) =\u003e {\n    console.log('onSubmit', data);\n  })\n\n  return (\n    \u003c\u003e\n      \u003ch1\u003eFormly\u003c/h1\u003e\n      \u003cFormly \n        form_name={'form1'} \n        fields={fields} \n        realtime={true}\n        onUpdate={onUpdate}\n        onSubmit={onSubmit} /\u003e\n    \u003c/\u003e\n  );\n});\n\nexport const head: DocumentHead = {\n  title: \"Qwik Formly\",\n  meta: [\n    {\n      name: \"description\",\n      content: \"Formly with qwik\",\n    },\n  ],\n};\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyalicode%2Fqwik-formly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyalicode%2Fqwik-formly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyalicode%2Fqwik-formly/lists"}