{"id":16416517,"url":"https://github.com/devanb/griditize","last_synced_at":"2025-10-24T22:31:25.492Z","repository":{"id":57254156,"uuid":"57857765","full_name":"DevanB/griditize","owner":"DevanB","description":"A small set of semantic React components that build grids","archived":false,"fork":false,"pushed_at":"2016-05-03T12:32:15.000Z","size":14,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T21:11:20.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DevanB.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":"2016-05-02T00:16:47.000Z","updated_at":"2016-05-03T13:48:34.000Z","dependencies_parsed_at":"2022-08-31T09:01:56.050Z","dependency_job_id":null,"html_url":"https://github.com/DevanB/griditize","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/DevanB%2Fgriditize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgriditize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgriditize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fgriditize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevanB","download_url":"https://codeload.github.com/DevanB/griditize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238039740,"owners_count":19406396,"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":[],"created_at":"2024-10-11T07:09:26.701Z","updated_at":"2025-10-24T22:31:20.198Z","avatar_url":"https://github.com/DevanB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Griditize\n## A small set of semantic React components that build grids\n\n### Table of Contents\n1. Overview\n2. `Grid`\n3. `Row`\n4. `Column`\n5. Usage\n6. Contributing\n7. License\n\n### Overview\nGriditize is a set of React components used to build semantic grids. At the heart, Griditize wraps [Flexbox grid](http://www.flexboxgrid.com), and exposes all of its API through props on the three components. Below you will find documentation on the three components and each prop you can pass in that component, as well as explanation of what prop does. Below are the four breakpoints that Flexbox grid uses:\n\nxsmall \u003c 48rem\nsmall \u003e= 48rem\nmedium \u003e= 64rem\nlarge \u003e= 75rem\n\n### `Grid`\n`Grid` is the outermost component, used to denote where the grid container begins and ends. `Grid` accepts two props:\n\n- `fluid`: (bool) Used to denote whether the container has a left and right auto margin or is a fluid container. A fluid container expands to the full width of the viewport with minimal padding (2rem) on either side for aesthetics.\n\n- `tagName`: (string) HTML element that grid compiles into. Defaults to `div`.\n\n### `Row`\n`Row` is an organizaitonal component, used to denote the vertical flow of columns in the grid. `Row` accepts several props:\n\n- `reverse`: (bool) Reverses the direction of the elements in the row.\n\n- `start`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the horizontal alignment of elements to the start of the row at the viewport specified.\n\n- `center`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the horizontal alignment of elements to the center of the row at the viewport specified.\n\n- `end`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the horizontal alignment of elements to the end of the row at the viewport specified.\n\n- `top`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the vertical alignment of elements to the top of the row at the viewport specified.\n\n- `middle`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the vertical alignment of elements to the middle of the row at the viewport specified.\n\n- `bottom`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Changes the vertical alignment of elements to the bottom of the row at the viewport specified.\n\n- `around`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Distributes the contents of the row to have equal spacing around each column at the viewport specified.\n\n- `between`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Distributes the contents of the row to have equal space between each column at the viewport specified.\n\n- `first`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Reorders to be the first element at the viewport specified.\n\n- `last`: (`oneOf(['xsmall', 'small', 'medium', 'large'])`) Reorders to be the first element at the viewport specified.\n\n- `tagName`: (string) HTML element that row compiles into. Defaults to `div`.\n\n### `Column`\n`Column` is the component used to denote how wide you want a column to be in a row, how offset that column should be in that row, and the direction in which the content flows in the column. `Column` accepts several props:\n\n- `xsmall`: (`oneOf([number, bool])`) The number of columns wide at the xsmall viewport, or a boolean to tell the column to auto size it's width at the xsmall viewport.\n\n- `small`: (`oneOf([number, bool])`) The number of columns wide at the small viewport, or a boolean to tell the column to auto size it's width at the small viewport.\n\n- `medium`: (`oneOf([number, bool])`) The number of columns wide at the medium viewport, or a boolean to tell the column to auto size it's width at the medium viewport.\n\n- `large`: (`oneOf([number, bool])`) The number of columns wide at the large viewport, or a boolean to tell the column to auto size it's width at the large viewport.\n\n- `xsmallOffset`: (number) The number of columns to offset on a xsmall viewport.\n\n- `smallOffset`: (number) The number of columns to offset on a small viewport.\n\n- `mediumOffset`: (number) The number of columns to offset on a medium viewport.\n\n- `largeOffset`: (number) The number of columns to offset on a large viewport.\n\n- `reverse`: (bool) Reverses the direction of the elements in the column.\n\n- `tagName`: (string) HTML element that col compiles into. Defaults to `div`.\n\n### Usage\n\n#### Standard Grid\n```\n\u003cGrid\u003e\n\t\u003cRow\u003e\n\t  \u003cColumn xsmall={12} small={8} medium={6} large={4}\u003e\n      \u003cspan\u003eContent\u003c/span\u003e\n    \u003c/Column\u003e\n\t\u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Offset Column\n```\n\u003cGrid\u003e\n\t\u003cRow\u003e\n    \u003cColumn xsmall={9} xsmallOffset={3}\u003e\n      \u003cspan\u003eoffset\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Auto Width Column\n```\n\u003cGrid\u003e\n\t\u003cRow\u003e\n    \u003cColumn xsmall small\u003e\n      \u003cspan\u003eAuto sized at xsmall and small viewports\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Nested Grids\n```\n\u003cGrid\u003e\n\t\u003cRow\u003e\n    \u003cColumn xsmall\u003e\n      \u003cspan\u003eAuto sized\u003c/span\u003e\n      \u003cRow\u003e\n\t\t\t\t\u003cColumn xsmall\u003e\n\t\t\t\t\t\u003cspan\u003eAuto sized and nested\u003c/span\u003e\n\t\t\t\t\u003c/Column\u003e\n      \u003c/Row\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Alignment\n```\n\u003cGrid\u003e\n\t\u003cRow start=\"large\" center=\"xsmall\" end=\"small\"\u003e\n    \u003cColumn xsmall={6}\u003e\n      \u003cspan\u003eStarts at large, center at xsmall, ends at small viewport\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n```\n\u003cGrid\u003e\n\t\u003cRow middle=\"xsmall\"\u003e\n    \u003cColumn xsmall={6}\u003e\n      \u003cspan\u003eCentered in middle of row on xsmall viewports\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Distribution\n```\n\u003cGrid\u003e\n\t\u003cRow around=\"xsmall\"\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003eEqual\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003ePadding\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003eAround\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n```\n\u003cGrid\u003e\n\t\u003cRow between=\"xsmall\"\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003eEqual\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003ePadding\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={2}\u003e\n      \u003cspan\u003eBetween\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n#### Reversing\n```\n\u003cGrid\u003e\n\t\u003cRow reverse\u003e\n    \u003cColumn xsmall={4}\u003e\n      \u003cspan\u003e1\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={4}\u003e\n      \u003cspan\u003e2\u003c/span\u003e\n    \u003c/Column\u003e\n    \u003cColumn xsmall={4}\u003e\n      \u003cspan\u003e3\u003c/span\u003e\n    \u003c/Column\u003e\n  \u003c/Row\u003e\n\u003c/Grid\u003e\n```\n\n### Contributing\n\n### License\nThe MIT License (MIT)\nCopyright (c) 2016 Devan Beitel. \u003cdevanb.us\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fgriditize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevanb%2Fgriditize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fgriditize/lists"}