{"id":13674688,"url":"https://github.com/e-oj/vue-magic-grid","last_synced_at":"2025-08-20T02:32:19.287Z","repository":{"id":39562757,"uuid":"157244445","full_name":"e-oj/vue-magic-grid","owner":"e-oj","description":"🧙‍♂️🔌 Responsive Magic Grid for Vue","archived":false,"fork":false,"pushed_at":"2023-01-03T15:21:57.000Z","size":2240,"stargazers_count":178,"open_issues_count":21,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T18:45:57.949Z","etag":null,"topics":["grid","masonry","vue"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/vue-magic-grid","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e-oj.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}},"created_at":"2018-11-12T16:39:51.000Z","updated_at":"2025-06-03T07:36:46.000Z","dependencies_parsed_at":"2023-02-01T07:01:18.727Z","dependency_job_id":null,"html_url":"https://github.com/e-oj/vue-magic-grid","commit_stats":null,"previous_names":["imlinus/vue-magic-grid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/e-oj/vue-magic-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-oj%2Fvue-magic-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-oj%2Fvue-magic-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-oj%2Fvue-magic-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-oj%2Fvue-magic-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-oj","download_url":"https://codeload.github.com/e-oj/vue-magic-grid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-oj%2Fvue-magic-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271254615,"owners_count":24727372,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["grid","masonry","vue"],"created_at":"2024-08-02T11:00:57.247Z","updated_at":"2025-08-20T02:32:18.986Z","avatar_url":"https://github.com/e-oj.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Vue-Magic-Grid\n\n[![GitHub forks](https://img.shields.io/github/forks/imlinus/Vue-Magic-Grid.svg)](https://github.com/imlinus/Vue-Magic-Grid/network)\n[![GitHub stars](https://img.shields.io/github/stars/imlinus/Vue-Magic-Grid.svg)](https://github.com/imlinus/Vue-Magic-Grid/stargazers)\n[![GitHub issues](https://img.shields.io/github/issues/imlinus/Vue-Magic-Grid.svg)](https://github.com/imlinus/Vue-Magic-Grid/issues)\n[![GitHub license](https://img.shields.io/github/license/imlinus/Vue-Magic-Grid.svg)](https://github.com/imlinus/Vue-Magic-Grid/blob/master/LICENSE)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nThis is a Vue.js port of @[e-oj's](https://github.com/e-oj) [Magic Grid](https://github.com/e-oj/Magic-Grid).\nPlease check the `/test` folder for a example.\n\nIf you use images, make sure they have a set height, otherwise the grid will calculate weirdly.\n\n\u003cimg src=\"https://i.imgur.com/Wzw0Yl9.png\"\u003e\n\n### Setup\nInstall \u0026 Register the component\n```js\n$ npm i -S vue-magic-grid\n```\n\n```js\nimport MagicGrid from 'vue-magic-grid'\n\nVue.use(MagicGrid)\n```\n\n### Setup with Nuxt\nCreate a magicgrid.js in your plugin folder\n```js\nimport Vue from 'vue'\nimport MagicGrid from 'vue-magic-grid'\n\nVue.use(MagicGrid)\n```\n\nAdd the plugin in your nuxt.config.js file\n```js\nplugins: [\n  {src: '~/plugins/magicgrid.js'}\n]\n```\n\n### Use\n```html\n\u003cmagic-grid\u003e\n  \u003ccard\n    v-for=\"(post, i) in posts\"\n    :key=\"i\"\n    :title=\"post.title\"\n    :body=\"post.body\" /\u003e\n\u003c/magic-grid\u003e\n```\n\n### Props\n| Prop        | Default   | Comment                    |\n|:------------|:----------|:---------------------------|\n| wrapper     | `wrapper` | _Wrapper class_            |\n| gap         | `32`      | _Gap between elements_     |\n| maxCols     | `5`       | _Max number of colums_     |\n| maxColWidth | `280`     | _Max width of columns_     |\n| animate     | `false`   | _Animate item positioning_ |\n\n[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com)\n\nCheers,\nImLinus\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-oj%2Fvue-magic-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-oj%2Fvue-magic-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-oj%2Fvue-magic-grid/lists"}