{"id":21063586,"url":"https://github.com/mathew-kurian/react-fast-grid","last_synced_at":"2025-06-12T21:05:57.581Z","repository":{"id":65412049,"uuid":"245017992","full_name":"mathew-kurian/react-fast-grid","owner":"mathew-kurian","description":"Useful Grid/Hidden algorithm from Material-UI","archived":false,"fork":false,"pushed_at":"2020-08-14T17:14:52.000Z","size":118,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T18:52:46.585Z","etag":null,"topics":["column-reverse","flex","flexbox","grid","grid-layout","grids","hidden","material-ui","react"],"latest_commit_sha":null,"homepage":"https://react-fast-grid.vercel.app/","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/mathew-kurian.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":"2020-03-04T22:33:40.000Z","updated_at":"2023-09-08T18:04:10.000Z","dependencies_parsed_at":"2023-01-23T10:55:01.511Z","dependency_job_id":null,"html_url":"https://github.com/mathew-kurian/react-fast-grid","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2Freact-fast-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2Freact-fast-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2Freact-fast-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathew-kurian%2Freact-fast-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathew-kurian","download_url":"https://codeload.github.com/mathew-kurian/react-fast-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254455984,"owners_count":22074075,"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":["column-reverse","flex","flexbox","grid","grid-layout","grids","hidden","material-ui","react"],"created_at":"2024-11-19T17:46:10.861Z","updated_at":"2025-05-16T02:32:00.303Z","avatar_url":"https://github.com/mathew-kurian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Fast Grid (+ Hidden)\n\n![CI](https://github.com/mathew-kurian/react-fast-grid/workflows/CI/badge.svg) [![npm version](https://badge.fury.io/js/react-fast-grid.svg)](https://badge.fury.io/js/react-fast-grid)\n\n### [Demo](https://react-fast-grid.vercel.app/)\n\n[![Edit React Fast Grid](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/grid-layout-wrc4q?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\nUseful algorithm extracted from [Material-UI Grid](https://material-ui.com/components/grid/#grid) and [Material-UI Hidden](https://material-ui.com/components/hidden/)\n\n```\nnpm install react-fast-grid\n```\n\n## IE11 Comptability\n\nSupported on IE11+\n\n## Known Issues\n\n### direction: column | column-reverse\n\nThough the Grid component has a direction property that allows values of row, row-reverse, column, and column-reverse, there are some features that are not supported within column and column-reverse containers. The properties which define the number of grids the component will use for a given breakpoint (xs, sm, md, lg, and xl) are focused on controlling width and do not have similar effects on height within column and column-reverse containers. If used within column or column-reverse containers, these properties may have undesirable effects on the width of the Grid elements.\n\n### Negative margin\n\nThere is one limitation with the negative margin we use to implement the spacing between items.\nA horizontal scroll will appear if a negative margin goes beyond the `\u003cbody\u003e`.\nThere are 3 available workarounds:\n\n1. Not using the spacing feature and implementing it in user space `spacing={0}` (default).\n2. Applying padding to the parent with at least half the spacing value applied to the child:\n\n```jsx\n\u003cbody\u003e\n  \u003cdiv style={{ padding: 20 }}\u003e\n    \u003cGrid container spacing={5}\u003e\n      //...\n    \u003c/Grid\u003e\n  \u003c/div\u003e\n\u003c/body\u003e\n```\n\n3. Adding `overflow-x: hidden;` to the parent.\n\n### white-space: nowrap;\n\nThe initial setting on flex items is `min-width: auto`.\nIt's causing a positioning conflict when the children is using `white-space: nowrap;`.\nYou can experience the issue with:\n\n```jsx\n\u003cGrid item xs\u003e\n  \u003cTypography noWrap\u003e\n```\n\nIn order for the item to stay within the container you need to set `min-width: 0`.\nIn practice, you can set the `zeroMinWidth` property:\n\n```jsx\n\u003cGrid item xs zeroMinWidth\u003e\n  \u003cTypography noWrap\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathew-kurian%2Freact-fast-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathew-kurian%2Freact-fast-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathew-kurian%2Freact-fast-grid/lists"}