{"id":13507193,"url":"https://github.com/icflorescu/mantine-datatable","last_synced_at":"2025-05-15T02:10:09.805Z","repository":{"id":58253314,"uuid":"527998852","full_name":"icflorescu/mantine-datatable","owner":"icflorescu","description":"The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.","archived":false,"fork":false,"pushed_at":"2025-03-06T13:24:15.000Z","size":4657,"stargazers_count":1046,"open_issues_count":46,"forks_count":76,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-09T18:08:34.249Z","etag":null,"topics":["dark-mode","dark-theme","datagrid","datatable","javascript","mantine","react","typescript","ui","uikit"],"latest_commit_sha":null,"homepage":"https://icflorescu.github.io/mantine-datatable/","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/icflorescu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"icflorescu"}},"created_at":"2022-08-23T13:16:30.000Z","updated_at":"2025-05-08T21:18:50.000Z","dependencies_parsed_at":"2022-08-31T04:11:06.630Z","dependency_job_id":"a986db3f-39d9-4559-819e-fa9b47f75274","html_url":"https://github.com/icflorescu/mantine-datatable","commit_stats":{"total_commits":457,"total_committers":3,"mean_commits":"152.33333333333334","dds":"0.015317286652078765","last_synced_commit":"461f054596c9b99897ce8056ba481eedb63c08cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-datatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-datatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-datatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icflorescu%2Fmantine-datatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icflorescu","download_url":"https://codeload.github.com/icflorescu/mantine-datatable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259386,"owners_count":22040821,"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":["dark-mode","dark-theme","datagrid","datatable","javascript","mantine","react","typescript","ui","uikit"],"created_at":"2024-08-01T02:00:27.053Z","updated_at":"2025-05-15T02:10:09.604Z","avatar_url":"https://github.com/icflorescu.png","language":"TypeScript","readme":"# Mantine DataTable\n\n![Publish NPM \u0026 deploy docs workflow](https://github.com/icflorescu/mantine-datatable/actions/workflows/publish-and-deploy.yml/badge.svg)  \n[![NPM version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n[![Stars][stars-image]][stars-url]\n[![Last commit][last-commit-image]][repo-url]\n[![Closed issues][closed-issues-image]][closed-issues-url]\n[![Downloads][downloads-image]][npm-url]\n[![Language][language-image]][repo-url]\n[![Sponsor the author][sponsor-image]][sponsor-url]\n\nThe [lightweight](https://bundlephobia.com/package/mantine-datatable), dependency-free, **dark-theme aware** table component for your Mantine UI data-rich applications, featuring asynchronous data loading support, pagination, intuitive Gmail-style additive batch rows selection, column sorting, custom cell data rendering, row expansion, nesting, context menus, and [much more](https://icflorescu.github.io/mantine-datatable/).\n\n[![Mantine DataTable](https://user-images.githubusercontent.com/581999/294180790-93289cec-4d73-47b5-988f-8c93dd3443fe.png)](https://icflorescu.github.io/mantine-datatable/)\n\n**⚠️ Mantine DataTable V7 is compatible with Mantine V7.**  \n**💡 If you're looking for the old version that works with [Mantine V6](https://v6.mantine.dev), head over to [Mantine DataTable V6](https://icflorescu.github.io/mantine-datatable-v6).**\n\n## Features\n\n- **Lightweight** - no external dependencies, [no bloat](https://bundlephobia.com/package/mantine-datatable)\n- **Dark-theme aware** - automatically adapts to the current [Mantine color scheme](https://mantine.dev/theming/color-schemes/)\n- **[Fully customizable](https://icflorescu.github.io/mantine-datatable/examples/overriding-the-default-styles)** - you can customize the look and feel of the table and its components\n- **[Asynchronous data loading](https://icflorescu.github.io/mantine-datatable/examples/asynchronous-data-loading)** - load data from a remote API endpoint and show a loading indicator while waiting for the response\n- **[Pagination](https://icflorescu.github.io/mantine-datatable/examples/pagination)** - split large data sets into pages\n- **[Column sorting](https://icflorescu.github.io/mantine-datatable/examples/sorting)** - sort data by one or more columns\n- **[Custom cell data rendering](https://icflorescu.github.io/mantine-datatable/examples/column-properties-and-styling)** - render cell data using custom components\n- **[Row context menu](https://icflorescu.github.io/mantine-datatable/examples/using-with-mantine-contextmenu)** - show a context menu when right-clicking on a row\n- **[Row expansion](https://icflorescu.github.io/mantine-datatable/examples/expanding-rows)** - expand a row to show additional details\n- **[Nesting](https://icflorescu.github.io/mantine-datatable/examples/nested-tables)** - nest tables to show hierarchical data\n- **[Additive batch rows selection](https://icflorescu.github.io/mantine-datatable/examples/records-selection)** - select or deselect ranges of rows using the Shift key\n- **[Automatically-scrollable](https://icflorescu.github.io/mantine-datatable/examples/scrollable-vs-auto-height)** - automatically scrollable or auto-height\n- **[AutoAnimate support](https://icflorescu.github.io/mantine-datatable/examples/using-with-auto-animate)** - animate row sorting, addition and removal\n- **[Column reordering, toggling](https://icflorescu.github.io/mantine-datatable/examples/column-dragging-and-toggling)** and **[resizing](https://icflorescu.github.io/mantine-datatable/examples/column-resizing)** - thanks to the outstanding work of [Giovambattista Fazioli](https://github.com/gfazioli)\n- **[Drag-and-drop support](https://icflorescu.github.io/mantine-datatable/examples/row-dragging)** - implemented using [@hello-pangea/dnd](https://github.com/hello-pangea/dnd) thanks to the outstanding work of [Mohd Ahmad](https://github.com/MohdAhmad1)\n- **More** - check out the [full documentation](https://icflorescu.github.io/mantine-datatable/)\n\n## Trusted by the community\n\n[Emil Sorensen](https://github.com/Emil-Sorensen) @ [kapa.ai](https://kapa.ai/):\n\n\u003e _Mantine DataTable is a great component that’s core to our web app - it saves us a ton of time and comes with great styling and features out of the box_\n\n[Giovambattista Fazioli](https://github.com/gfazioli) @ [Namecheap](https://www.namecheap.com/) ([@gfazioli](https://github.com/gfazioli) is also a valuable Mantine DataTable contributor):\n\n\u003e _Thank you for the wonderful, useful, and beautiful DataTable that has allowed me to create several applications without any problem 👏_\n\nMantine DataTable is used by developers and companies around the world, such as: [Namecheap](https://www.namecheap.com/), [EasyWP](https://www.easywp.com/), [CodeParrot.AI](https://codeparrot.ai), [OmicsStudio](https://omicsstudio.com), [SegmentX](https://segmentx.ai), [Aquarino](https://www.aquarino.com.br/), [Dera](https://getdera.com/), [kapa.ai](https://kapa.ai/), [exdatis.ai](https://exdatis.ai/), [teachfloor](https://www.teachfloor.com/), [MARKUP](https://www.getmarkup.com/), [BookieBase](https://bookiebase.ie/), [zipline](https://zipline.diced.tech/), [Pachtop](https://github.com/pacholoamit/pachtop), [Ganymede](https://github.com/Zibbp/ganymede), [COH3 Stats](https://coh3stats.com/), [Culver City Rental Registry](https://www.ccrentals.org/) and many more.\n\nIf you're using Mantine DataTable in your project, please drop me a line at the email address listed in my [GitHub profile](https://github.com/icflorescu) and I'll be happy to add it to the list and on the [documentation website](https://icflorescu.github.io/mantine-datatable/).\n\n## Full documentation and examples\n\nVisit [icflorescu.github.io/mantine-datatable](https://icflorescu.github.io/mantine-datatable/) to view the full documentation and learn how to use it by browsing a comprehensive list of examples.\n\n## Mantine DataTable AI Bot\n\n[Mantine DataTable AI Bot](https://codeparrot.ai/oracle?owner=icflorescu\u0026repo=mantine-datatable), kindly provided by [CodeParrot.AI](https://codeparrot.ai), will help you understand this repository better. You can ask for code examples, installation guide, debugging help and much more.\n\n## Quickstart\n\nCreate a new [application with Mantine](https://mantine.dev/getting-started/), make sure to have the `clsx` peer dependency installed,\nthen install the package with `npm i mantine-datatable` or `yarn add mantine-datatable`.\n\nImport the necessary CSS files:\n\n```ts\nimport '@mantine/core/styles.layer.css';\nimport 'mantine-datatable/styles.layer.css';\nimport './layout.css';\n```\n\nMake sure to [apply the styles in the correct order](https://mantine.dev/styles/mantine-styles/):\n\n```css\n/* layout.css */\n/* 👇 Apply Mantine core styles first, DataTable styles second */\n@layer mantine, mantine-datatable;\n```\n\nUse the component in your code:\n\n```ts\n'use client';\n\nimport { Box } from '@mantine/core';\nimport { showNotification } from '@mantine/notifications';\nimport { DataTable } from 'mantine-datatable';\n\nexport function GettingStartedExample() {\n  return (\n    \u003cDataTable\n      withTableBorder\n      borderRadius=\"sm\"\n      withColumnBorders\n      striped\n      highlightOnHover\n      // 👇 provide data\n      records={[\n        { id: 1, name: 'Joe Biden', bornIn: 1942, party: 'Democratic' },\n        // more records...\n      ]}\n      // 👇 define columns\n      columns={[\n        {\n          accessor: 'id',\n          // 👇 this column has a custom title\n          title: '#',\n          // 👇 right-align column\n          textAlign: 'right',\n        },\n        { accessor: 'name' },\n        {\n          accessor: 'party',\n          // 👇 this column has custom cell data rendering\n          render: ({ party }) =\u003e (\n            \u003cBox fw={700} c={party === 'Democratic' ? 'blue' : 'red'}\u003e\n              {party.slice(0, 3).toUpperCase()}\n            \u003c/Box\u003e\n          ),\n        },\n        { accessor: 'bornIn' },\n      ]}\n      // 👇 execute this callback when a row is clicked\n      onRowClick={({ record: { name, party, bornIn } }) =\u003e\n        showNotification({\n          title: `Clicked on ${name}`,\n          message: `You clicked on ${name}, a ${party.toLowerCase()} president born in ${bornIn}`,\n          withBorder: true,\n        })\n      }\n    /\u003e\n  );\n}\n```\n\nMake sure to browse the comprehensive list of [usage examples](https://icflorescu.github.io/mantine-datatable/examples/basic-usage) to learn how to unleash the full power of Mantine DataTable.\n\n## Other useful resources\n\nMantine DataTable works perfectly with [Mantine Context Menu](https://icflorescu.github.io/mantine-contextmenu/), a library built by the same author that enables you to enhance your UIs with desktop-grade, lightweight yet fully-featured context menus that respect the Mantine color scheme out of the box:\n\n[![Mantine ContextMenu](https://user-images.githubusercontent.com/581999/294179957-e5b07f1f-701b-49a9-a518-4e42afb8b70a.png)](https://icflorescu.github.io/mantine-contextmenu/)\n\n## Contributing\n\nSee the [contributing guide in the documentation website](https://icflorescu.github.io/mantine-datatable/contribute-and-support) or the repo [CONTRIBUTING.md](https://github.com/icflorescu/mantine-datatable/blob/master/CONTRIBUTING.md) file for details.\n\n💡 Most importantly, remember to **make your PRs against the `next` branch.**\n\nHere's the list of people who have already contributed to Mantine DataTable:\n\n[![Contributors list](https://contrib.rocks/image?repo=icflorescu/mantine-datatable)](https://github.com/icflorescu/mantine-datatable/graphs/contributors)\n\nWant to [become a code contributor](https://icflorescu.github.io/mantine-datatable/contribute-and-support)?\n\n## Support the project\n\nIf you find this package useful, please consider ❤️ [sponsoring my work](https://github.com/sponsors/icflorescu).  \nYour sponsorship will help me dedicate more time to maintaining the project and will encourage me to add new features and fix existing bugs.  \nIf you're a company using Mantine, Mantine DataTable or [Mantine ContextMenu](https://icflorescu.github.io/mantine-contextmenu/) in a commercial project, you can also [hire my services](https://github.com/icflorescu).\n\n## Other means of support\n\nIf you can't afford to sponsor the project or hire my services, there are other ways you can support my work:\n\n- 🙏 star the repository;\n- 💕 [tweet about it](http://twitter.com/share?text=Build%20data-rich%20React%20applications%20with%20Mantine%20DataTable\u0026url=https%3A%2F%2Fgithub.com%2Ficflorescu%2Fmantine-datatable\u0026hashtags=mantine%2Cdatatable%2Cdatagrid%2Creact\u0026via=icflorescu);\n- 👍 [endorse me on LinkedIn](https://www.linkedin.com/in/icflorescu).\n\nThe more stars this repository gets, the more visibility it gains among the Mantine users community. The more\nusers it gets, the more chances that some of those users will become active code contributors willing to put\ntheir effort into bringing new features to life and/or fixing bugs.\n\nAs the repository gain awareness, my chances of getting hired to work on Mantine-based projects will increase,\nwhich in turn will help maintain my vested interest in keeping the project alive.\n\n## Hiring the author\n\nIf you want to hire my services, don’t hesitate to drop me a line at the email address listed in my [GitHub profile](https://github.com/icflorescu).\nI’m currently getting a constant flow of approaches, some of them relevant, others not so relevant.\nMentioning “Mantine DataTable” in your text would help me prioritize your message.\n\n## Acknowledgements\n\n🙏 Special thanks to [Ani Ravi](https://github.com/aniravi24) for being the first person to sponsor my work on this project!\n💕 Additional thanks to [all sponsors](https://github.com/sponsors/icflorescu)!\n\n## License\n\nThe [MIT License](https://github.com/icflorescu/mantine-datatable/blob/master/LICENSE).\n\n[npm-url]: https://npmjs.org/package/mantine-datatable\n[repo-url]: https://github.com/icflorescu/mantine-datatable\n[stars-url]: https://github.com/icflorescu/mantine-datatable/stargazers\n[closed-issues-url]: https://github.com/icflorescu/mantine-datatable/issues?q=is%3Aissue+is%3Aclosed\n[license-url]: LICENSE\n[npm-image]: https://img.shields.io/npm/v/mantine-datatable.svg?style=flat-square\n[license-image]: http://img.shields.io/npm/l/mantine-datatable.svg?style=flat-square\n[downloads-image]: http://img.shields.io/npm/dm/mantine-datatable.svg?style=flat-square\n[stars-image]: https://img.shields.io/github/stars/icflorescu/mantine-datatable?style=flat-square\n[last-commit-image]: https://img.shields.io/github/last-commit/icflorescu/mantine-datatable?style=flat-square\n[closed-issues-image]: https://img.shields.io/github/issues-closed-raw/icflorescu/mantine-datatable?style=flat-square\n[language-image]: https://img.shields.io/github/languages/top/icflorescu/mantine-datatable?style=flat-square\n[sponsor-image]: https://img.shields.io/badge/sponsor-violet?style=flat-square\n[sponsor-url]: https://github.com/sponsors/icflorescu\n","funding_links":["https://github.com/sponsors/icflorescu","https://github.com/sponsors/icflorescu)!"],"categories":["Projects using `@faker-js/faker`","UI Components","TypeScript"],"sub_categories":["Table"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficflorescu%2Fmantine-datatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficflorescu%2Fmantine-datatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficflorescu%2Fmantine-datatable/lists"}