• Stars
    star
    839
  • Rank 52,384 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated 10 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

Mantine DataTable

Publish NPM & deploy docs workflow
NPM version License Stars Last commit Closed issues Downloads Language Sponsor the author

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 context menu, row expansion, nesting, and more.

Mantine DataTable

Features

Trusted by the community

Who's using Mantine DataTable

Mantine DataTable is used by developers and startups around the world, including: 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 your project to the list and on the documentation website.

Full documentation and examples

Visit icflorescu.github.io/mantine-datatable to view the full documentation and learn how to use it by browsing a comprehensive list of examples.

Quickstart

Install the package and its dependencies:

npm i @mantine/core @mantine/hooks @emotion/react mantine-datatable

If you're using Next.js, Vite, CRA, Remix or Gatsby, you might need to install additional dependencies. Please refer to Mantine's getting started page for more details.

Use it in your code:

import { Text } from '@mantine/core';
import { DataTable } from 'mantine-datatable';

export default function GettingStartedExample() {
  return (
    <DataTable
      withBorder
      borderRadius="sm"
      withColumnBorders
      striped
      highlightOnHover
      // provide data
      records={[
        { id: 1, name: 'Joe Biden', bornIn: 1942, party: 'Democratic' },
        // more records...
      ]}
      // define columns
      columns={[
        {
          accessor: 'id',
          // this column has a custom title
          title: '#',
          // right-align column
          textAlignment: 'right',
        },
        { accessor: 'name' },
        {
          accessor: 'party',
          // this column has custom cell data rendering
          render: ({ party }) => (
            <Text weight={700} color={party === 'Democratic' ? 'blue' : 'red'}>
              {party.slice(0, 3).toUpperCase()}
            </Text>
          ),
        },
        { accessor: 'bornIn' },
      ]}
      // execute this callback when a row is clicked
      onRowClick={({ name, party, bornIn }) =>
        alert(`You clicked on ${name}, a ${party.toLowerCase()} president born in ${bornIn}.`)
      }
    />
  );
}

Make sure to browse the comprehensive list of usage examples to learn how to unleash the full power of Mantine DataTable.

Other useful resources

Mantine DataTable had the context-menu functionality baked in since its early days. If you're looking to use a context menu in other parts of your application, you might want to check out Mantine Context Menu.

Code contributors

Contributors list

Want to become a code contributor?

Sponsor the project

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 DataTable in a commercial project, you can also hire my services.

Other means of support

If you find this package useful, please 🙏 star the repository, 💕 tweet about it, 👍 endorse me on LinkedIn or consider hiring my services.

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.

Hiring the author

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.

Acknowledgements

🙏 Special thanks to Ani Ravi for being the first person to sponsor my work on this project!

License

The MIT License.

More Repositories

1

iisexpress-proxy

A simple local proxy for accessing IIS Express from remote machines.
JavaScript
737
star
2

trpc-sveltekit

End-to-end typesafe APIs with tRPC.io for your SvelteKit applications.
TypeScript
727
star
3

openshift-cartridge-nodejs

Custom cartridge for OpenShift providing the lastest version of Node.js.
Shell
221
star
4

trpc-sveltekit-example

A sample SvelteKit application built to illustrate the usage of ✨ trpc-sveltekit.
Svelte
130
star
5

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.
TypeScript
114
star
6

expose-wsl

The simplest way to expose apps running on WSL to local network devices.
JavaScript
97
star
7

openshift-cartridge-mongodb

Custom cartridge for OpenShift providing MongoDB > 3.2.
Shell
70
star
8

textdiff-create

Create lean text diff deltas.
JavaScript
37
star
9

aspax

The simple Node.js asset packager.
CoffeeScript
17
star
10

textdiff-patch

Apply lean text diff delta patches created by textdiff-create.
JavaScript
17
star
11

quickstart-express-react

Combined live/hot-reloading quickstart for Express.js/React
JavaScript
16
star
12

trpc-transformer

A simple tRPC transformer based on superjson with decimal.js support
JavaScript
14
star
13

openshift-cartridge-mysql

Custom cartridge for OpenShift providing MySQL 5.7.17
Shell
13
star
14

vlc-3-appimage

A repository for building a VLC 3.0.3 AppImage on Travis CI
Shell
11
star
15

postgresql-tsearch-utils

A collection of files and patterns to improve PostgreSQL text search
11
star
16

aspa

End of Life Notice - January 2014: Please use ASPAX instead.
CoffeeScript
9
star
17

aspa-express

ASPA-Express is an Express/Connect module to use web assets packaged by ASPA
JavaScript
9
star
18

interiordelight.ro.v1

interiordelight.ro
JavaScript
7
star
19

quick-romanian-freelance-tax-calculator

A quick & dirty tax calculator for Romanian freelancers.
Svelte
6
star
20

openshift-cartridge-postgresql

Custom OpenShift cartridge aiming to provide the most recent stable PostgreSQL version packaged by bigsql.org.
Shell
6
star
21

gulp-js-with-nancy-fx

A Node.js-based front-end development workflow for ASP.NET
CSS
5
star
22

icflorescu

Ionut-Cristian Florescu
2
star
23

mantine-contextmenu-v6

The lightweight yet customisable context-menu for your Mantine applications, with a succinct API and dark-theme support. Compatible with Mantine V6.
TypeScript
2
star
24

qilive-q8912-kbd-driver-win-ro

Driver Windows pentru tastatură Bluetooth cu layout românesc Q.8912 de la Qilive
2
star
25

aspax-styl-handler

Plugin enabling ASPAX to handle Stylus files.
CoffeeScript
2
star
26

aspax-ls-handler

Plugin enabling ASPAX to handle LiveScript files.
LiveScript
2
star
27

aspax-jade-handler

Plugin enabling ASPAX to handle Jade files.
CoffeeScript
2
star
28

aspax-iced-handler

Plugin enabling ASPAX to handle IcedCoffeeScript files.
CoffeeScript
2
star
29

aspax-coffee-handler

Plugin enabling ASPAX to handle CoffeeScript files.
CoffeeScript
2
star
30

basic-stylus-grid

A very simple CSS grid system in less than 35 lines of code using Stylus
2
star
31

aspax-less-handler

Plugin enabling ASPAX to handle LESS files.
CoffeeScript
2
star
32

aspax-demo

A simple Node.js application to demonstrate the usage of ASPAX package manager.
JavaScript
1
star
33

aspax-express

Module enabling Express.js to handle assets built and packaged by ASPAX.
JavaScript
1
star
34

flutter_course

Code for Maximilian's Flutter course
Dart
1
star
35

next-netlify-blog-starter

JavaScript
1
star
36

galanta

A minimal UI library to make your Svelte apps look stylish
Svelte
1
star
37

flutterux

A Dart / Flutter / Redux project sample.
Dart
1
star
38

next8-babel-issue

A repo demonstrating issue #6273 in Next.js
JavaScript
1
star
39

mantine-datatable-v6

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.
TypeScript
1
star