Tables

Tables are used to display tabular data. If you’re unsure whether you should be using a table or a list, here’s a guide.

Guidelines

Navigation

Actions

Utilities

We provide some tailwind utilities for quickly styling tables. If your needs go beyond these please see the design tokens for tables.

How to build a table using @tanstack/react-table

We recommend using react-table to render tables in React. It’s better than anything we could write ourselves. This is a short guide showing how to style the table using our theme. There is of course a lot more to find out over at the official docs.

Install react-table:

Here’s the CSS we use for the tables. This is like the legacy table classes that are no longer part of the design system.

Create a component

Here’s the code above running hot.

Search Gunnel

Powered byAlgolia