{"id":22791099,"url":"https://github.com/rootsher/react-auto-mosaic","last_synced_at":"2025-10-28T15:43:47.526Z","repository":{"id":44865841,"uuid":"253224680","full_name":"rootsher/react-auto-mosaic","owner":"rootsher","description":"Automatic box behavior in the grid - responsive mosaic.","archived":false,"fork":false,"pushed_at":"2022-01-21T19:36:03.000Z","size":15399,"stargazers_count":15,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T03:11:44.963Z","etag":null,"topics":["box","grid","mosaic","react-auto-mosaic","react-mosaic","responsive","tiles"],"latest_commit_sha":null,"homepage":"","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/rootsher.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":"2020-04-05T12:01:57.000Z","updated_at":"2025-04-08T00:58:46.000Z","dependencies_parsed_at":"2022-09-04T15:23:26.253Z","dependency_job_id":null,"html_url":"https://github.com/rootsher/react-auto-mosaic","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-auto-mosaic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-auto-mosaic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-auto-mosaic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootsher%2Freact-auto-mosaic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootsher","download_url":"https://codeload.github.com/rootsher/react-auto-mosaic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188428,"owners_count":21227015,"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":["box","grid","mosaic","react-auto-mosaic","react-mosaic","responsive","tiles"],"created_at":"2024-12-12T02:32:34.954Z","updated_at":"2025-10-28T15:43:47.429Z","avatar_url":"https://github.com/rootsher.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [react-auto-mosaic](https://github.com/rootsher/react-auto-mosaic)\n\n[![npm version](https://img.shields.io/npm/v/react-auto-mosaic.svg)](https://www.npmjs.com/package/react-auto-mosaic)\n[![npm downloads](https://img.shields.io/npm/dm/react-auto-mosaic.svg)](https://www.npmjs.com/package/react-auto-mosaic)\n[![GitHub issues](https://img.shields.io/github/issues/rootsher/react-auto-mosaic.svg)](https://github.com/rootsher/react-auto-mosaic/issues)\n[![GitHub PRs](https://img.shields.io/github/issues-pr/rootsher/react-auto-mosaic.svg)](https://github.com/rootsher/react-auto-mosaic/pulls)\n[![MIT license](https://img.shields.io/npm/l/react-auto-mosaic.svg)](https://opensource.org/licenses/MIT)\n\n## installation\n\n```shell script\nnpm install --save react-auto-mosaic\n```\n\n## demo\n\n### before (problem with mismatched tiles)\n\n\u003cimg src=\"https://raw.githubusercontent.com/rootsher/react-auto-mosaic/master/docs/assets/img/demo-before.gif\"\u003e\n\n### after (solved using react-auto-mosaic)\n\n\u003cimg src=\"https://raw.githubusercontent.com/rootsher/react-auto-mosaic/master/docs/assets/img/demo-after.gif\"\u003e\n\n## example\n\n1. Define the number of columns in the grid.\n2. Define grid breakpoints (like in bootstrap).\n3. Create a list of tiles, of any height.\n4. Enjoy automatic tiles behavior :)\n\n```ts\nexport const DemoMosaic = () =\u003e (\n    \u003cReactAutoMosaic\n        gridColumns={12}\n        gridGutterWidth={20}\n        gridBreakpoints={{\n            380: 12,\n            576: 6,\n            992: 4,\n            1280: 3,\n            1600: 2,\n            1920: 1,\n        }}\n    \u003e\n        \u003cdiv\u003etile-1\u003c/div\u003e\n        \u003cdiv\u003etile-2\u003c/div\u003e\n        \u003cdiv\u003etile-3\u003c/div\u003e\n        \u003cdiv\u003etile-4\u003c/div\u003e\n        \u003cdiv\u003etile-5\u003c/div\u003e\n        \u003cdiv\u003etile-6\u003c/div\u003e\n        \u003cdiv\u003etile-7\u003c/div\u003e\n        \u003cdiv\u003etile-8\u003c/div\u003e\n        \u003cdiv\u003etile-9\u003c/div\u003e\n    \u003c/ReactAutoMosaic\u003e\n)};\n\n```\n\n## scripts\n\n-   start dev\n\n```shell script\n$ npm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsher%2Freact-auto-mosaic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootsher%2Freact-auto-mosaic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsher%2Freact-auto-mosaic/lists"}