{"id":16446116,"url":"https://github.com/mschaeffner/react-dashboard-layout","last_synced_at":"2026-01-21T16:37:25.472Z","repository":{"id":29922761,"uuid":"122452917","full_name":"mschaeffner/react-dashboard-layout","owner":"mschaeffner","description":"A react layout for dashboard","archived":false,"fork":false,"pushed_at":"2022-12-10T18:07:20.000Z","size":2001,"stargazers_count":1,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:39:16.024Z","etag":null,"topics":["dashboard","es2015","grid-layout","javascript","layout","react","responsive"],"latest_commit_sha":null,"homepage":"","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/mschaeffner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-22T08:50:45.000Z","updated_at":"2020-01-16T20:37:11.000Z","dependencies_parsed_at":"2023-01-14T15:56:01.584Z","dependency_job_id":null,"html_url":"https://github.com/mschaeffner/react-dashboard-layout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschaeffner%2Freact-dashboard-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschaeffner%2Freact-dashboard-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschaeffner%2Freact-dashboard-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschaeffner%2Freact-dashboard-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mschaeffner","download_url":"https://codeload.github.com/mschaeffner/react-dashboard-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785920,"owners_count":20995642,"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":["dashboard","es2015","grid-layout","javascript","layout","react","responsive"],"created_at":"2024-10-11T09:46:30.094Z","updated_at":"2026-01-21T16:37:25.426Z","avatar_url":"https://github.com/mschaeffner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-dashboard-layout\n\n[![Travis][build-badge]][build]\n[![npm package][npm-badge]][npm]\n\n[build-badge]: https://img.shields.io/travis/mschaeffner/react-dashboard-layout/master.png?style=flat-square\n[build]: https://travis-ci.org/mschaeffner/react-dashboard-layout\n\n[npm-badge]: https://img.shields.io/npm/v/react-dashboard-layout.png?style=flat-square\n[npm]: https://www.npmjs.org/package/react-dashboard-layout\n\n\n## Install\n``npm install --save react-dashboard-layout``\n\n## Use\n\n```\nimport ReactDashboardLayout, {Item} from 'react-dashboard-layout'\n...\nrender() {\n  \u003cReactDashboardLayout\n    cols={12}\n    rows={12}\n  \u003e\n\n    \u003cdiv data-grid={{w:2, h:2}}\u003e\n      content\n    \u003c/div\u003e\n\n    \u003cdiv data-grid={{w:2, h:2}}\u003e\n      content\n    \u003c/div\u003e\n\n    \u003cdiv data-grid={{w:2, h:2}}\u003e\n      content\n    \u003c/div\u003e\n\n  \u003c/ReactDashboardLayout\u003e\n}\n\n```\n\n## Properties\n\n#### ReactDashboardLayout\n```javascript\n  // The number of columns.\n  cols: ?number = 12,\n\n  // The number of rows.\n  // Optional: if set layout will fill screen, otherwise it will be a scrollable layout.\n  rows: ?number,\n\n  // Controls the responsiveness of the layout, so that having a different number of columns based on the screen width.\n  // If this is set, then cols property will be ignored.\n  // Example:  [ {width: 768, cols: 6}, {width: 1024, cols: 12}, {width: 480, cols: 3} ]\n  breakpoints: ?Array,\n\n  // The margin between children inside the layout in px, [x, y].\n  margin: ?[number, number] = [10, 10],\n\n```\n\n#### Child component inside the layout\n```javascript\n  // The width of the child, meaning how many columns it will take of the layout.\n  w: number,\n\n  // The height of the child.\n  // If number of rows is set for the layout, then height of this child means how many rows it will take of the layout.\n  // Else height is relative to the width of the child.\n  // E.g. w=4 and h=2 would mean that the child's height is always 50% of its width.\n  h: number,\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschaeffner%2Freact-dashboard-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmschaeffner%2Freact-dashboard-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschaeffner%2Freact-dashboard-layout/lists"}