{"id":22873774,"url":"https://github.com/peckzeg/vc-align","last_synced_at":"2026-05-05T07:32:44.587Z","repository":{"id":85513160,"uuid":"296002891","full_name":"PeckZeg/vc-align","owner":"PeckZeg","description":"Vue 3 Align Component. Wrapper around https://github.com/yiminghe/dom-align.","archived":false,"fork":false,"pushed_at":"2020-09-24T06:37:58.000Z","size":2010,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T18:46:06.021Z","etag":null,"topics":["align","vue","vue-align","vue-component","vue3"],"latest_commit_sha":null,"homepage":"https://peckzeg.github.io/vc-align/","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/PeckZeg.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":"2020-09-16T10:43:22.000Z","updated_at":"2021-01-14T09:28:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f225685-7276-4893-9697-a593ca241921","html_url":"https://github.com/PeckZeg/vc-align","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"d2a8c7da9f3275e9f2e8898de3c2e4bbb22358c7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeckZeg%2Fvc-align","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeckZeg%2Fvc-align/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeckZeg%2Fvc-align/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeckZeg%2Fvc-align/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeckZeg","download_url":"https://codeload.github.com/PeckZeg/vc-align/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246472523,"owners_count":20783224,"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":["align","vue","vue-align","vue-component","vue3"],"created_at":"2024-12-13T14:30:14.483Z","updated_at":"2026-05-05T07:32:44.554Z","avatar_url":"https://github.com/PeckZeg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `vc-align`\n\nVue 3 Align Component. Wrapper around https://github.com/yiminghe/dom-align.\n\n[![NPM version][npm-image]][npm-url]\n[![David dm][david-dm-image]][david-dm-url]\n[![node version][node-image]][node-url]\n\n[npm-image]: http://img.shields.io/npm/v/@ayase/vc-align.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@ayase/vc-align\n[david-dm-image]: https://img.shields.io/david/PeckZeg/ayase.svg?path=packages/vc-align\n[david-dm-url]: https://david-dm.org/PeckZeg/ayase?path=packages/vc-align\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n\n\u003e [`rc-align`](https://github.com/react-component/align) for vue 3\n\n## Install\n\n[![vc-align](https://nodei.co/npm/@ayase/vc-align.png)](https://www.npmjs.com/package/@ayase/vc-align)\n\n## Usage\n\n```vue\n\u003ctemplate\u003e\n  \u003cAlign :align=\"{ points: ['cc', 'cc'] }\" :target=\"() =\u003e document.body\"\u003e\n    \u003cdiv /\u003e\n  \u003c/Align\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport Align from '@ayase/vc-align';\n\nexport default {\n  components: { Align }\n};\n\u003c/script\u003e\n```\n\n## API\n\n### Props\n\n| Prop                  | Description                                                                                                         | Type                                                                                            | Default        |\n| --------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -------------- |\n| `align`               | same with alignConfig from [dom-align](https://github.com/yiminghe/dom-align)                                       | `Object`                                                                                        | -              |\n| `target`              | a function which returned value or point is used for target from [dom-align](https://github.com/yiminghe/dom-align) | `() =\u003e HTMLElement \\| { pageX: number, pageY: number } \\| { clientX: number, clientY: number }` | `() =\u003e window` |\n| `monitorWindowResize` | whether realign when window is resized                                                                              | `boolean`                                                                                       | `false`        |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeckzeg%2Fvc-align","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeckzeg%2Fvc-align","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeckzeg%2Fvc-align/lists"}