Gathering detailed insights and metrics for mantine-datatable
Gathering detailed insights and metrics for mantine-datatable
Gathering detailed insights and metrics for mantine-datatable
Gathering detailed insights and metrics for mantine-datatable
mantine-datatable-filter
Column filter, sorting and pagination handler for mantine-datatable
mantine-contextmenu
Craft your applications for productivity and meet your users’ expectations by enhancing your Mantine-based UIs with a desktop-grade, lightweight yet fully-featured, dark-theme aware context-menu component, built by the creator of Mantine DataTable
@xpamamadeus/mantine-datatable
Fork with zero based pagination
@mana.soul/mantine-data-table
A reusable DataTable component built with React and Mantine
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.
npm install mantine-datatable
Typescript
Module System
Node Version
NPM Version
90.5
Supply Chain
93.1
Quality
83.9
Maintenance
100
Vulnerability
99.6
License
TypeScript (92.46%)
CSS (6.98%)
JavaScript (0.55%)
HTML (0.01%)
Total Downloads
1,878,073
Last Day
5,347
Last Week
30,003
Last Month
120,396
Last Year
1,189,912
MIT License
1,049 Stars
1,474 Commits
77 Forks
9 Watchers
2 Branches
18 Contributors
Updated on May 15, 2025
Minified
Minified + Gzipped
Latest Version
7.17.1
Package Id
mantine-datatable@7.17.1
Unpacked Size
490.05 kB
Size
113.01 kB
File Count
10
NPM Version
10.8.2
Node Version
20.18.3
Published on
Mar 06, 2025
Cumulative downloads
Total Downloads
4
39
The lightweight, 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.
⚠️ Mantine DataTable V7 is compatible with Mantine V7.
💡 If you're looking for the old version that works with Mantine V6, head over to Mantine DataTable V6.
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
Giovambattista Fazioli @ Namecheap (@gfazioli is also a valuable Mantine DataTable contributor):
Thank you for the wonderful, useful, and beautiful DataTable that has allowed me to create several applications without any problem 👏
Mantine DataTable is used by developers and companies around the world, such as: Namecheap, EasyWP, CodeParrot.AI, OmicsStudio, SegmentX, Aquarino, Dera, kapa.ai, exdatis.ai, teachfloor, MARKUP, BookieBase, zipline, Pachtop, Ganymede, COH3 Stats, Culver City Rental Registry and many more.
If you're using Mantine DataTable in your project, please drop me a line at the email address listed in my GitHub profile and I'll be happy to add it to the list and on the documentation website.
Visit icflorescu.github.io/mantine-datatable to view the full documentation and learn how to use it by browsing a comprehensive list of examples.
Mantine DataTable AI Bot, kindly provided by CodeParrot.AI, will help you understand this repository better. You can ask for code examples, installation guide, debugging help and much more.
Create a new application with Mantine, make sure to have the clsx
peer dependency installed,
then install the package with npm i mantine-datatable
or yarn add mantine-datatable
.
Import the necessary CSS files:
1import '@mantine/core/styles.layer.css'; 2import 'mantine-datatable/styles.layer.css'; 3import './layout.css';
Make sure to apply the styles in the correct order:
1/* layout.css */ 2/* 👇 Apply Mantine core styles first, DataTable styles second */ 3@layer mantine, mantine-datatable;
Use the component in your code:
1'use client'; 2 3import { Box } from '@mantine/core'; 4import { showNotification } from '@mantine/notifications'; 5import { DataTable } from 'mantine-datatable'; 6 7export function GettingStartedExample() { 8 return ( 9 <DataTable 10 withTableBorder 11 borderRadius="sm" 12 withColumnBorders 13 striped 14 highlightOnHover 15 // 👇 provide data 16 records={[ 17 { id: 1, name: 'Joe Biden', bornIn: 1942, party: 'Democratic' }, 18 // more records... 19 ]} 20 // 👇 define columns 21 columns={[ 22 { 23 accessor: 'id', 24 // 👇 this column has a custom title 25 title: '#', 26 // 👇 right-align column 27 textAlign: 'right', 28 }, 29 { accessor: 'name' }, 30 { 31 accessor: 'party', 32 // 👇 this column has custom cell data rendering 33 render: ({ party }) => ( 34 <Box fw={700} c={party === 'Democratic' ? 'blue' : 'red'}> 35 {party.slice(0, 3).toUpperCase()} 36 </Box> 37 ), 38 }, 39 { accessor: 'bornIn' }, 40 ]} 41 // 👇 execute this callback when a row is clicked 42 onRowClick={({ record: { name, party, bornIn } }) => 43 showNotification({ 44 title: `Clicked on ${name}`, 45 message: `You clicked on ${name}, a ${party.toLowerCase()} president born in ${bornIn}`, 46 withBorder: true, 47 }) 48 } 49 /> 50 ); 51}
Make sure to browse the comprehensive list of usage examples to learn how to unleash the full power of Mantine DataTable.
Mantine DataTable works perfectly with Mantine Context Menu, 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:
See the contributing guide in the documentation website or the repo CONTRIBUTING.md file for details.
💡 Most importantly, remember to make your PRs against the next
branch.
Here's the list of people who have already contributed to Mantine DataTable:
Want to become a code contributor?
If you find this package useful, please consider ❤️ sponsoring my work.
Your sponsorship will help me dedicate more time to maintaining the project and will encourage me to add new features and fix existing bugs.
If you're a company using Mantine, Mantine DataTable or Mantine ContextMenu in a commercial project, you can also hire my services.
If you can't afford to sponsor the project or hire my services, there are other ways you can support my work:
The more stars this repository gets, the more visibility it gains among the Mantine users community. The more users it gets, the more chances that some of those users will become active code contributors willing to put their effort into bringing new features to life and/or fixing bugs.
As the repository gain awareness, my chances of getting hired to work on Mantine-based projects will increase, which in turn will help maintain my vested interest in keeping the project alive.
If you want to hire my services, don’t hesitate to drop me a line at the email address listed in my GitHub profile. I’m currently getting a constant flow of approaches, some of them relevant, others not so relevant. Mentioning “Mantine DataTable” in your text would help me prioritize your message.
🙏 Special thanks to Ani Ravi for being the first person to sponsor my work on this project! 💕 Additional thanks to all sponsors!
The MIT License.
No vulnerabilities found.
No security vulnerabilities found.
Last Day
36.9%
5,347
Compared to previous day
Last Week
4.3%
30,003
Compared to previous week
Last Month
-1%
120,396
Compared to previous month
Last Year
110.9%
1,189,912
Compared to previous year