{"id":24859660,"url":"https://github.com/ihenvyr/react-styled-grid","last_synced_at":"2025-10-15T06:30:35.296Z","repository":{"id":18813175,"uuid":"84062677","full_name":"ihenvyr/react-styled-grid","owner":"ihenvyr","description":"A responsive fluid grid system built with styled-components that uses Row and Column approach","archived":false,"fork":false,"pushed_at":"2022-12-12T03:19:31.000Z","size":2617,"stargazers_count":9,"open_issues_count":23,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T08:45:48.213Z","etag":null,"topics":["fluid-grid","grid-system","react","responsive-grid","styled-components"],"latest_commit_sha":null,"homepage":"https://ihenvyr.github.io/react-styled-grid/","language":"JavaScript","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/ihenvyr.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":"2017-03-06T10:55:34.000Z","updated_at":"2020-04-24T01:24:53.000Z","dependencies_parsed_at":"2022-09-19T23:53:15.555Z","dependency_job_id":null,"html_url":"https://github.com/ihenvyr/react-styled-grid","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihenvyr%2Freact-styled-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihenvyr%2Freact-styled-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihenvyr%2Freact-styled-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihenvyr%2Freact-styled-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihenvyr","download_url":"https://codeload.github.com/ihenvyr/react-styled-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236582805,"owners_count":19172434,"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":["fluid-grid","grid-system","react","responsive-grid","styled-components"],"created_at":"2025-01-31T20:59:27.002Z","updated_at":"2025-10-15T06:30:29.745Z","avatar_url":"https://github.com/ihenvyr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-styled-grid\nA responsive fluid grid system built with [styled-components](https://github.com/styled-components/styled-components) that uses `Row` and `Column` approach. For demo proceed to https://ihenvyr.github.io/react-styled-grid/\n\n## Getting Started\n\n```sh\nnpm install react-styled-grid\n```\n\n```js\nimport React from 'react';\nimport { Row, Column, Panel } from 'react-styled-grid';\n\nconst App = () =\u003e (\n  \u003cRow spacer={20}\u003e\n    \u003cColumn medium={4/12}\u003e\n      \u003cRow\u003e\n        \u003cColumn medium={6/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n        \u003cColumn medium={6/12}\u003e\n          \u003cRow\u003e\n            \u003cColumn medium={6/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n            \u003cColumn medium={6/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n          \u003c/Row\u003e\n        \u003c/Column\u003e\n      \u003c/Row\u003e\n    \u003c/Column\u003e\n    \u003cColumn medium={4/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n    \u003cColumn medium={4/12}\u003e\n      \u003cRow collapse\u003e\n        \u003cColumn medium={3/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n        \u003cColumn medium={3/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n        \u003cColumn medium={3/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n        \u003cColumn medium={3/12}\u003e\u003cPanel\u003ecol\u003c/Panel\u003e\u003c/Column\u003e\n      \u003c/Row\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n)\n\nexport default App\n```\n\n## Row\n\n- `spacer`: (number) margin-top and margin-bottom\n- `expanded`: completely fluid (by default, a row is always 1200 pixels wide)\n- `collapse`: remove gutter on all devices\n\n## Column\n\n- `small`: (number) width as a fraction for the small breakpoint and up\n- `medium`: (number) width as a fraction for the medium breakpoint and up\n- `large`: (number) width as a fraction for the large breakpoint and up\n\n## Panel\n\n- It's just helper to properly visualize the column content :)\n\n## Theming\n\nReact Styled Grid has defaults, but to customize the values,\nuse styled-components `ThemeProvider` component.\n\n```js\nimport React from 'react';\nimport { Row, Column, Panel } from 'react-styled-grid';\nimport { ThemeProvider } from 'styled-components';\n\nconst App = () =\u003e (\n  \u003cThemeProvider\n    theme={{ gutter: 20, medium: 640, large: 1024, maxWidth: 1200 }}\u003e\n    \u003cRow spacer={20}\u003e\n      \u003cColumn medium={6/12} large={3/12}\u003e\u003cPanel\u003eColumn\u003c/Panel\u003e\u003c/Column\u003e\n      \u003cColumn medium={6/12} large={3/12}\u003e\u003cPanel\u003eColumn\u003c/Panel\u003e\u003c/Column\u003e\n      \u003cColumn medium={6/12} large={3/12}\u003e\u003cPanel\u003eColumn\u003c/Panel\u003e\u003c/Column\u003e\n      \u003cColumn medium={6/12} large={3/12}\u003e\u003cPanel\u003eColumn\u003c/Panel\u003e\u003c/Column\u003e\n    \u003c/Row\u003e\n  \u003c/ThemeProvider\u003e\n)\n```\n\n### Gutter\n\nAll Column components have `10` pixels left and right padding.\nTo customize the column gutter, pass a number to `theme.gutter` with the ThemeProvider component.\n\n### Max Width\n\nOuter Row's width which is by default has a value of `1200` pixels.\nTo customize the outer-most row max-width, pass a number to `theme.maxWidth` with the ThemeProvider component.\n\n### Breakpoints\n\nColumn components use a mobile-first responsive approach,\nwhere any value set works from that breakpoint and wider.\nBreakpoints are hard-coded to the following min-widths for medium: `640` and large: `1024` in pixels.\nLower than medium will automatically fallback to small.\n\nTo customize the breakpoints, pass a number to `theme.medium` and `theme.large` with the ThemeProvider component.\n\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihenvyr%2Freact-styled-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihenvyr%2Freact-styled-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihenvyr%2Freact-styled-grid/lists"}