{"id":13827094,"url":"https://github.com/nem035/react-gridit","last_synced_at":"2025-03-24T00:32:15.499Z","repository":{"id":92966100,"uuid":"115847009","full_name":"nem035/react-gridit","owner":"nem035","description":"React grid using CSS Grid and styled-components","archived":false,"fork":false,"pushed_at":"2018-01-03T17:56:51.000Z","size":130,"stargazers_count":96,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-09-24T09:07:24.566Z","etag":null,"topics":["css-grid","react","styled-components"],"latest_commit_sha":null,"homepage":"https://github.com/nem035/react-gridit","language":"JavaScript","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/nem035.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}},"created_at":"2017-12-31T06:27:06.000Z","updated_at":"2023-12-18T05:40:16.000Z","dependencies_parsed_at":"2023-03-17T06:31:06.809Z","dependency_job_id":null,"html_url":"https://github.com/nem035/react-gridit","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.33333333333333337","last_synced_commit":"ba093a52514854474945a8afb662bcea9c278e47"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Freact-gridit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Freact-gridit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Freact-gridit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Freact-gridit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nem035","download_url":"https://codeload.github.com/nem035/react-gridit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221928655,"owners_count":16903274,"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":["css-grid","react","styled-components"],"created_at":"2024-08-04T09:01:49.889Z","updated_at":"2024-10-28T20:26:09.643Z","avatar_url":"https://github.com/nem035.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.npmjs.org/package/react-gridit\"\u003e\n  \t\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/logo.png\" alt=\"react-gridit\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# [react-gridit](https://www.npmjs.org/package/react-gridit)\n\nReact grid using [CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) and [styled-components](https://www.styled-components.com/)\n\n## Install\n\n```bash\nnpm i react-gridit\n```\n\nor\n\n```bash\nyarn add react-gridit\n```\n\n## Examples\n\n[![Codesandbox examples](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/10p4l2m33) or checkout the [examples](https://github.com/nem035/react-gridit/tree/master/examples) React app.\n\nYou can run the examples locally by doing `npm run examples`.\n\n### Rows\n\n```jsx\n\u003cGridRows minSize=\"20px\"\u003e\n  \u003cBlock size=\"1fr\"\u003e1\u003c/Block\u003e\n  \u003cBlock size=\"2fr\"\u003e2\u003c/Block\u003e\n  \u003cBlock size=\"3fr\"\u003e3\u003c/Block\u003e\n  \u003cBlock size=\"4fr\"\u003e4\u003c/Block\u003e\n  \u003cBlock size=\"5fr\"\u003e5\u003c/Block\u003e\n\u003c/GridRows\u003e\n```\n\nOutput:\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/rows.png\" alt=\"react-gridit-rows\"\u003e\n\n### Columns\n\n```jsx\n\u003cGridColumns minSize=\"50px\"\u003e\n  \u003cBlock size=\"1fr\"\u003e1\u003c/Block\u003e\n  \u003cBlock size=\"2fr\"\u003e2\u003c/Block\u003e\n  \u003cBlock size=\"3fr\"\u003e3\u003c/Block\u003e\n  \u003cBlock size=\"4fr\"\u003e4\u003c/Block\u003e\n  \u003cBlock size=\"5fr\"\u003e5\u003c/Block\u003e\n\u003c/GridColumns\u003e\n```\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/columns.png\" alt=\"react-gridit-columns\"\u003e\n\n### Nesting\n\n```jsx\n\u003cGridRows minSize=\"20px\"\u003e\n  \u003cGridColumns\u003e\n    \u003cBlock size=\"1fr\"\u003e1\u003c/Block\u003e\n    \u003cBlock size=\"3fr\"\u003e3\u003c/Block\u003e\n  \u003c/GridColumns\u003e\n  \u003cGridColumns\u003e\n    \u003cBlock size=\"1fr\"\u003e1\u003c/Block\u003e\n  \u003c/GridColumns\u003e\n  \u003cGridColumns\u003e\n    \u003cBlock size=\"1fr\"\u003e1\u003c/Block\u003e\n    \u003cBlock size=\"4fr\"\u003e4\u003c/Block\u003e\n    \u003cBlock size=\"2fr\"\u003e2\u003c/Block\u003e\n  \u003c/GridColumns\u003e\n\u003c/GridRows\u003e\n```\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/nesting.png\" alt=\"react-gridit-nesting\"\u003e\n\n### Areas\n\n```jsx\n\u003cGridArea\n  area={`\n    \"header header header header\"\n    \"sidebar . main1 main2\"\n    \"sidebar footer footer footer\"\n  `}\n\u003e\n  \u003cBlock header\u003eHeader\u003c/Block\u003e\n  \u003cBlock sidebar\u003eSidebar\u003c/Block\u003e\n  \u003cBlock main1\u003eMain1\u003c/Block\u003e\n  \u003cBlock main2\u003eMain2\u003c/Block\u003e\n  \u003cBlock footer\u003eFooter\u003c/Block\u003e\n\u003c/GridArea\u003e\n```\n\nOutput:\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/area.png\" alt=\"react-gridit-area\"\u003e\n\n### Responsive areas\n\n```jsx\n\u003cGridArea\n  area={`\n    \"a b\"\n    \"c d\"\n  `}\n  query=\"(max-width: 599px)\"\n  fallbackArea={`\"a b c d\"`}\n\u003e\n  \u003cBlock a\u003eA\u003c/Block\u003e\n  \u003cBlock b\u003eB\u003c/Block\u003e\n  \u003cBlock c\u003eC\u003c/Block\u003e\n  \u003cBlock d\u003eD\u003c/Block\u003e\n\u003c/GridArea\u003e\n```\n\nOutput (match):\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/area-responsive-match.png\" alt=\"react-gridit-area-responsive-match\"\u003e\n\nOutput (no match):\n\n\u003cimg src=\"https://github.com/nem035/react-gridit/blob/master/examples/area-responsive-no-match.png\" alt=\"react-gridit-area-responsive-no-match\"\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnem035%2Freact-gridit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnem035%2Freact-gridit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnem035%2Freact-gridit/lists"}