{"id":18801851,"url":"https://github.com/mitscherlich/vue-forward-ref","last_synced_at":"2025-07-09T16:03:06.089Z","repository":{"id":230081345,"uuid":"778395431","full_name":"Mitscherlich/vue-forward-ref","owner":"Mitscherlich","description":"Portal `React.forwardRef` api into Vue","archived":false,"fork":false,"pushed_at":"2025-07-01T21:46:10.000Z","size":454,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-01T22:29:56.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/v-forward-ref","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/Mitscherlich.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2024-03-27T16:33:58.000Z","updated_at":"2025-05-05T07:00:40.000Z","dependencies_parsed_at":"2024-05-29T04:59:37.888Z","dependency_job_id":"868b210f-54a3-45c2-8d76-35d6efe1c4a0","html_url":"https://github.com/Mitscherlich/vue-forward-ref","commit_stats":null,"previous_names":["mitscherlich/vue-forward-ref"],"tags_count":3,"template":false,"template_full_name":"Mitscherlich/ts-lib-starter","purl":"pkg:github/Mitscherlich/vue-forward-ref","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fvue-forward-ref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fvue-forward-ref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fvue-forward-ref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fvue-forward-ref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mitscherlich","download_url":"https://codeload.github.com/Mitscherlich/vue-forward-ref/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fvue-forward-ref/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264492249,"owners_count":23617025,"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-11-07T22:25:29.918Z","updated_at":"2025-07-09T16:03:05.998Z","avatar_url":"https://github.com/Mitscherlich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v-forward-ref\n\n[![npm version](https://badgen.net/npm/v/v-forward-ref)](https://npm.im/v-forward-ref) [![npm downloads](https://badgen.net/npm/dm/v-forward-ref)](https://npm.im/v-forward-ref)\n\n## Install\n\nvia `pnpm`, `yarn` or `npm`:\n\n```bash\npnpm add v-forward-ref\n# or\nyarn add v-forward-ref\n# or\nnpm i -S v-forward-ref\n```\n\n## How to use\n\n```typescript\nimport { forwardRef } from 'v-forward-ref'\n\nconst Comp = defineComponent((props, ctx) =\u003e {\n  ctx.expose({ foo: 'bar' })\n\n  return () =\u003e \u003cdiv\u003e{props.message}\u003c/div\u003e\n})\n\nconst Wrap = forwardRef((props, { slots }, ref) =\u003e {\n  return \u003cComp {...props} ref={ref} v-slots={slots} /\u003e\n})\n\nconst App = defineComponent(() =\u003e {\n  const cmpRef = ref(null)\n\n  onMounted(() =\u003e {\n    console.log(cmpRef.value.foo) // =\u003e 'bar'\n  })\n\n  return () =\u003e \u003cWrap message=\"Hello\" ref={cmpRef} /\u003e\n})\n```\n\n## License\n\nMIT \u0026copy; [Mitscherlich](https://mitscherlich.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitscherlich%2Fvue-forward-ref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitscherlich%2Fvue-forward-ref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitscherlich%2Fvue-forward-ref/lists"}