{"id":13507196,"url":"https://github.com/KevinVandy/mantine-react-table","last_synced_at":"2025-03-30T07:32:27.808Z","repository":{"id":65101799,"uuid":"581948708","full_name":"KevinVandy/mantine-react-table","owner":"KevinVandy","description":"A fully featured Mantine V5 implementation of TanStack React Table V8, forked from Material React Table","archived":false,"fork":false,"pushed_at":"2024-04-29T17:30:27.000Z","size":14611,"stargazers_count":704,"open_issues_count":34,"forks_count":118,"subscribers_count":13,"default_branch":"v2","last_synced_at":"2024-05-02T03:06:28.490Z","etag":null,"topics":["datagrid","mantine","tanstack-table"],"latest_commit_sha":null,"homepage":"https://www.mantine-react-table.com/","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/KevinVandy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"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},"funding":{"github":"KevinVandy"}},"created_at":"2022-12-25T02:03:02.000Z","updated_at":"2024-07-21T03:40:19.844Z","dependencies_parsed_at":"2024-03-10T19:23:39.773Z","dependency_job_id":"7e0c7539-1737-43ff-b32c-bfdb9a4299c9","html_url":"https://github.com/KevinVandy/mantine-react-table","commit_stats":{"total_commits":902,"total_committers":33,"mean_commits":"27.333333333333332","dds":0.08758314855875826,"last_synced_commit":"f069397e1d072ba61c4ea50685f60906f5a944a6"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinVandy%2Fmantine-react-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinVandy%2Fmantine-react-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinVandy%2Fmantine-react-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinVandy%2Fmantine-react-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevinVandy","download_url":"https://codeload.github.com/KevinVandy/mantine-react-table/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290578,"owners_count":20753724,"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":["datagrid","mantine","tanstack-table"],"created_at":"2024-08-01T02:00:27.164Z","updated_at":"2025-03-30T07:32:26.900Z","avatar_url":"https://github.com/KevinVandy.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KevinVandy"],"categories":["Projects using `@faker-js/faker`","TypeScript"],"sub_categories":[],"readme":"# Mantine React Table\n\nView the [Docs Site](https://www.mantine-react-table.com/)\n\nA fork of [Material React Table](https://www.material-react-table.com)\n\nV1 released July 18, 2023\n\n\u003ca href=\"https://npmjs.com/package/mantine-react-table\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/npm/v/mantine-react-table?color=blue\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmtrends.com/mantine-react-table\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/npm/dt/mantine-react-table?label=installs\u0026icon=npm\u0026color=blue\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://bundlephobia.com/result?p=mantine-react-table\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/bundlephobia/minzip/mantine-react-table@latest?color=blue\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://star-history.com/#kevinvandy/mantine-react-table\u0026Date\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/github/stars/KevinVandy/mantine-react-table?color=blue\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/KevinVandy/mantine-react-table/blob/v2/LICENSE\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/github/license/KevinVandy/mantine-react-table?color=blue\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://makeapullrequest.com\" target=\"_blank\"\u003e\n  \u003cimg alt=\"\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" /\u003e\n\u003c/a\u003e\n\n## About\n\n### _Quickly Create React Data Tables with Mantine_\n\n### __Built with [Mantine \u003csup\u003eV7\u003c/sup\u003e](https://mantine.dev/) and [TanStack Table \u003csup\u003eV8\u003c/sup\u003e](https://tanstack.com/table/v8)__\n\n\u003cimg src=\"https://mantine-react-table.com/banner.png\" alt=\"MRT\" height=\"50\"/\u003e\n\n## Learn More\n\n- Join the [Discord](https://discord.gg/5wqyRx6fnm) server to join in on the development discussion or ask questions\n- View the [Docs Website](https://www.mantine-react-table.com/)\n- See all [Props, Options, and APIs](https://www.mantine-react-table.com/docs/api)\n\n### Quick Examples\n\n - [Basic Table](https://www.mantine-react-table.com/docs/examples/basic/) (See Default Features)\n - [Minimal Table](https://www.mantine-react-table.com/docs/examples/minimal/) (Turn off Features like Pagination, Sorting, Filtering, and Toolbars)\n - [Advanced Table](https://www.mantine-react-table.com/docs/examples/advanced/) (See some of the Advanced Features)\n - [Aggregation/Grouping](https://www.mantine-react-table.com/docs/examples/aggregation-and-grouping/) (Aggregation features such as Sum, Average, Count, etc.)\n - [Data Export Table](https://www.mantine-react-table.com/docs/examples/data-export/) (Export to CSV, Excel, etc.)\n - [Editing CRUD Table](https://www.mantine-react-table.com/docs/examples/editing-crud/) (Create, Edit, and Delete Rows)\n - [Remote Data](https://www.mantine-react-table.com/docs/examples/remote/) (Server-side Pagination, Sorting, and Filtering)\n - [React Query](https://www.mantine-react-table.com/docs/examples/react-query/) (Server-side Pagination, Sorting, and Filtering, simplified)\n - [Virtualized Rows](https://www.mantine-react-table.com/docs/examples/virtualized/) (10,000 rows at once!)\n - [Infinite Scrolling](https://www.mantine-react-table.com/docs/examples/infinite-scrolling/) (Fetch data as you scroll)\n - [Localization (i18n)](https://www.mantine-react-table.com/docs/guides/localization#built-in-locale-examples) (Over a dozen languages built-in)\n\nView additional [storybook examples](https://www.mantine-react-table.dev/)\n\n## Features\n\n_All features can easily be enabled/disabled_\n\n_**Fully Fleshed out [Docs](https://www.mantine-react-table.com/docs/guides#guides) are available for all features**_\n\n- [x] \u003c 44kb gzipped - [Bundlephobia](https://bundlephobia.com/package/mantine-react-table)\n- [x] Advanced TypeScript Generics Support (TypeScript Optional)\n- [x] Aggregation and Grouping (Sum, Average, Count, etc.)\n- [x] Click To Copy Cell Values\n- [x] Column Action Dropdown Menu\n- [x] Column Hiding\n- [x] Column Ordering via Drag'n'Drop\n- [x] Column Pinning (Freeze Columns)\n- [x] Column Resizing\n- [x] Customize Icons\n- [x] Customize Styling of internal Mantine Components\n- [x] Data Editing (4 different editing modes)\n- [x] Density Toggle\n- [x] Detail Panels (Expansion)\n- [x] Filtering (supports client-side and server-side)\n- [x] Filter Match Highlighting\n- [x] Full Screen Mode\n- [x] Global Filtering (Search across all columns, rank by best match)\n- [x] Header Groups \u0026 Footers\n- [x] Localization (i18n) support\n- [x] Manage your own state or let the table manage it internally for you\n- [x] Pagination (supports client-side and server-side)\n- [x] Row Actions (Your Custom Action Buttons)\n- [x] Row Numbers\n- [x] Row Ordering via Drag'n'Drop\n- [x] Row Selection (Checkboxes)\n- [x] SSR compatible\n- [x] Sorting (supports client-side and server-side)\n- [x] Theming (Respects your Mantine Theme)\n- [x] Toolbars (Add your own action buttons)\n- [x] Tree Data / Expanding Sub-rows\n- [x] Virtualization (@tanstack/react-virtual)\n\n## Getting Started\n\n### Installation\n\nView the full [Installation Docs](https://www.mantine-react-table.com/docs/getting-started/install)\n\n1. Ensure that you have React 17 or later installed\n\n2. Install Peer Dependencies (Mantine V6 and Tabler Icons)\n\n```bash\nnpm install @mantine/core @mantine/hooks @mantine/dates @emotion/react @tabler/icons-react dayjs\n```\n\n3. Install mantine-react-table\n\n```bash\nnpm install mantine-react-table\n```\n\n\u003e _`@tanstack/react-table`, `@tanstack/react-virtual`, `@tanstack/match-sorter-utils`,_ are internal dependencies, so you do NOT need to install them yourself.\n\n### Usage\n\n\u003e Read the full usage docs [here](https://www.mantine-react-table.com/docs/getting-started/usage/)\n\n```jsx\nimport { useMemo, useState, useEffect } from 'react';\nimport { MantineReactTable, useMantineReactTable } from 'mantine-react-table';\n\nconst data = [\n  {\n    name: 'John',\n    age: 30,\n  },\n  {\n    name: 'Sara',\n    age: 25,\n  },\n]\n\nexport default function App() {\n  const columns = useMemo(\n    () =\u003e [\n      {\n        accessorKey: 'name', //simple recommended way to define a column\n        header: 'Name',\n        mantineTableHeadCellProps: { style: { color: 'green' } }, //optional custom props\n        Cell: ({ cell }) =\u003e \u003cspan\u003e{cell.getValue()}\u003c/span\u003e, //optional custom cell render\n      },\n      {\n        accessorFn: (row) =\u003e row.age, //alternate way\n        id: 'age', //id required if you use accessorFn instead of accessorKey\n        header: 'Age',\n        Header: () =\u003e \u003ci\u003eAge\u003c/i\u003e, //optional custom header render\n      },\n    ],\n    [],\n  );\n\n  //optionally, you can manage any/all of the table state yourself\n  const [rowSelection, setRowSelection] = useState({});\n\n  useEffect(() =\u003e {\n    //do something when the row selection changes\n  }, [rowSelection]);\n\n  const table = useMantineReactTable({\n    columns,\n    data,\n    enableColumnOrdering: true, //enable some features\n    enableRowSelection: true,\n    enablePagination: false, //disable a default feature\n    onRowSelectionChange: setRowSelection, //hoist row selection state to your state\n    state: { rowSelection },\n  });\n  \n  return \u003cMantineReactTable table={table} /\u003e;\n}\n```\n\n_Open in [Code Sandbox](https://codesandbox.io/s/simple-mantine-react-table-example-t5c3ji)_\n\n## Contributors\n\n\u003ca href=\"https://github.com/kevinvandy/mantine-react-table/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=kevinvandy/mantine-react-table\" /\u003e\n\u003c/a\u003e\n\nPRs are Welcome, but please discuss in [GitHub Discussions](https://github.com/KevinVandy/mantine-react-table/discussions) or the [Discord Server](https://discord.gg/5wqyRx6fnm) first if it is a large change!\n\nRead the [Contributing Guide](https://github.com/KevinVandy/mantine-react-table/blob/v2/CONTRIBUTING.md) to learn how to run this project locally.\n\n\u003c!-- Use the FORCE Luke! --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKevinVandy%2Fmantine-react-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKevinVandy%2Fmantine-react-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKevinVandy%2Fmantine-react-table/lists"}