{"id":25441929,"url":"https://github.com/chocoscoding/layout-greed","last_synced_at":"2025-07-10T12:38:18.224Z","repository":{"id":181067808,"uuid":"666163609","full_name":"chocoscoding/layout-greed","owner":"chocoscoding","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-28T12:42:03.000Z","size":1253,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T02:36:33.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chocoscoding.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,"governance":null}},"created_at":"2023-07-13T21:34:52.000Z","updated_at":"2024-04-22T23:32:28.000Z","dependencies_parsed_at":"2023-07-16T00:47:14.601Z","dependency_job_id":null,"html_url":"https://github.com/chocoscoding/layout-greed","commit_stats":null,"previous_names":["chocoscoding/layout-greed"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Flayout-greed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Flayout-greed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Flayout-greed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Flayout-greed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chocoscoding","download_url":"https://codeload.github.com/chocoscoding/layout-greed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239122031,"owners_count":19585328,"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":"2025-02-17T13:16:04.154Z","updated_at":"2025-02-17T13:16:05.078Z","avatar_url":"https://github.com/chocoscoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# layout-greed\n\nLayout guidlines to make sure you are on the right track when developing.\nInspired by Figma 💄\n\n# Installing\n\nFor npm users - `npm install layout-greed`\n\nFor yarn users - `yarn install layout-greed`\n\n# Demo\n ### Grids\n![Example Image](https://res.cloudinary.com/chocoscoding/image/upload/v1694645658/Web_capture_13-9-2023_234458_localhost_p9erja.jpg)\n ### Rows\n![Example Image](https://res.cloudinary.com/chocoscoding/image/upload/v1694645657/Web_capture_13-9-2023_234614_localhost_y9gi6x.jpg)\n ### Columns\n![Example Image](https://res.cloudinary.com/chocoscoding/image/upload/v1694645658/Web_capture_13-9-2023_234636_localhost_pc6zkk.jpg)\n\n[Demo video](https://res.cloudinary.com/chocoscoding/video/upload/v1694686302/Untitled_1_wvxzdx.mp4)\n\n\n\n[![Edit strange-currying-48g5tr](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/strange-currying-48g5tr?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n# Usability Notice\n \u003e use (shift+l) to hide/show the layout grid control \n\n# How to use\n\n- For normal use\n\n```jsx\nimport { Layout } from 'layout-greed';\nconst App = () =\u003e {\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cLayout /\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n- To pick custom bindings / keyboard shortcuts\n\n```jsx\nimport { Layout } from 'layout-greed';\nconst App = () =\u003e {\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cLayout customKeyBinding=\"ctrl+e\" /\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n- To conditionally hide the layout grids\n\n```jsx\nimport { Layout } from 'layout-greed';\nconst App = () =\u003e {\n  const disabled = () =\u003e {\n    if (process.env.NODE_ENV !== 'production') return true;\n    return false;\n  };\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cLayout hide={disabled} /\u003e\n    \u003c/div\u003e\n  );\n};\n```\n\n# \u003cLayout/\u003e props\n\n| Props            | Types   | Default                |\n| ---------------- | ------- | ---------------------- |\n| hide             | boolean | N/A                    |\n| color            | string  | rgba(250, 15, 15, 0.1) |\n| customKeyBinding | string  | shift+l                |\n\n# How to contribute\n\n```\ngit clone https://github.com/chocoscoding/layout-greed layoutgreed\ncd layoutgreed\nyarn install\n```\n\n- Create a branch with the name of the feature you're want to contribute about. (Not too long naming)\n- Run `yarn test` to make sure everything is alright and good.\n- Run `yarn storybook` to see and manage ui changes .\n- Make your contributions 😻\n- Run the following commands\n  ```\n  git add .\n  yarn commit\n  ```\n- Run yor tests\n- Push the changes\n- Create a pull request\n- After test and requirements are passed, your changes would be merged ✨✨✨✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocoscoding%2Flayout-greed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocoscoding%2Flayout-greed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocoscoding%2Flayout-greed/lists"}