{"id":16193815,"url":"https://github.com/chilijung/react-modular-table","last_synced_at":"2026-07-18T11:03:35.287Z","repository":{"id":57334789,"uuid":"69659273","full_name":"chilijung/react-modular-table","owner":"chilijung","description":"A modular table in react","archived":false,"fork":false,"pushed_at":"2018-04-11T09:02:57.000Z","size":931,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T22:04:12.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chilijung.github.io/react-modular-table/","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/chilijung.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-09-30T10:54:26.000Z","updated_at":"2018-04-11T09:54:57.000Z","dependencies_parsed_at":"2022-08-31T16:41:43.154Z","dependency_job_id":null,"html_url":"https://github.com/chilijung/react-modular-table","commit_stats":null,"previous_names":["canner/react-modular-table"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chilijung/react-modular-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-modular-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-modular-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-modular-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-modular-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/react-modular-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-modular-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280699785,"owners_count":26375697,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T08:16:43.253Z","updated_at":"2025-10-23T22:04:15.340Z","avatar_url":"https://github.com/chilijung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-modular-table [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e table in modular, build your table in components!\n\n## Installation\n\n```sh\n$ npm install --save react-modular-table\n```\n\n## Usage\n\n```js\nimport {DivRow, DivTable, DivCell} from 'react-modular-table';\n\nReactDOM.render(\n  \u003cDivTable\u003e\n  \t\u003cDivRow\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow1, column1\n  \t\t\u003c/DivCell\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow1, column2\n  \t\t\u003c/DivCell\u003e\n  \t\u003c/DivRow\u003e\n  \t\u003cDivRow\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow2, column1\n  \t\t\u003c/DivCell\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow2, column2\n  \t\t\u003c/DivCell\u003e\n  \t\u003c/DivRow\u003e\n  \t\u003cDivRow\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow3, column1\n  \t\t\u003c/DivCell\u003e\n  \t\t\u003cDivCell\u003e\n  \t\t\trow3, column2\n  \t\t\u003c/DivCell\u003e\n  \t\u003c/DivRow\u003e\n  \u003c/DivTable\u003e\n, document.getElementById('root'));\n\n\n```\n\n## Components for **\\\u003cDiv/\\\u003e** Table\n\n### \\\u003cDivTable/\\\u003e\n\nUsing `\u003cdiv/\u003e` to build your table, it's children **should only be** `\u003cDivRow/\u003e`\n\n| **props** | **type** | **required** | **default** | **description**  |\n|-----------|----------|--------------|-------------|------------------|\n| style     | object   | false        | {}          | customize styles |\n| outerStyle     | object   | false        | {}          | customize outerStyles |\n| width     | number   | true         | 350         | table width      |\n| height    | number   | true         | 350         | table height     |\n\nother props (other than the props above) send to `\u003cDivTable/\u003e` will pass to the `\u003cdiv/\u003e` directly.\n\nIn other words, `\u003cDivTable/\u003e` is just like `\u003ctable/\u003e`.\n\n### \\\u003cDivRow/\\\u003e\n\nUsing `\u003cdiv/\u003e` to build your table row, it's children **should only be** `\u003cDivCell/\u003e`\n\n| **props** | **type** | **required** | **default** | **description**  |\n|-----------|----------|--------------|-------------|------------------|\n| style     | object   | false        | {}          | customize styles |\n| outerStyle  | object   | false         | {}         | customize outerStyles      |\n| rowHeight  | number   | false         | height / total `\u003cDivRow/\u003e` amount         | height of the row      |\n\nother props (other than the props above) send to `\u003cDivRow/\u003e` will pass to the `\u003cdiv/\u003e` directly.\n\nYou can get row height via `data-rowHeight` attribute.\n\nIn other words, `\u003cDivRow/\u003e` is just like `\u003ctr/\u003e`.\n\n### \\\u003cDivCell/\\\u003e\n\nthe smallest component for the div table. Use to define the cells.\n\n| **props** | **type** | **required** | **default** | **description**  |\n|-----------|----------|--------------|-------------|------------------|\n| style     | object   | false        | {}          | customize styles |\n| outerStyle  | object   | false         | {}         | customize outerStyles      |\n| cellWidth  | number   | false         | width / total `\u003cDivCell/\u003e` amount         | width of the cell      |\n\nother props (other than the props above) send to `\u003cDivCell/\u003e` will pass to the `\u003cdiv/\u003e` directly.\n\nYou can get row height via `data-rowHeight` attribute.\n\nYou can get cell width via `data-cellWidth` attribute.\n\nIn other words, `\u003cDivCell/\u003e` is just like `\u003ctd/\u003e`.\n\n## Start example server\n\n```\nnpm start\n```\n\n## Maintainer\n\n[chilijung](https://github.com/chilijung)\n\n## License\n\nMIT © [Canner](https://github.com/canner)\n\n\n[npm-image]: https://badge.fury.io/js/react-modular-table.svg\n[npm-url]: https://npmjs.org/package/react-modular-table\n[travis-image]: https://travis-ci.org/Canner/react-modular-table.svg?branch=master\n[travis-url]: https://travis-ci.org/Canner/react-modular-table\n[daviddm-image]: https://david-dm.org/Canner/react-modular-table.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/Canner/react-modular-table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-modular-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Freact-modular-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-modular-table/lists"}