1. Components
  2. Tables

Tables

Tailwind CSS Tables

Choose the best Tailwind CSS table for responsive, grid-like data display. Easily customise it with search, pagination, action buttons and more.

Example

Using the most basic table markup, here's how tables look.

All the examples are responsive - tables allow tables to be scrolled horizontally with ease.

Theme:

Striped rows

Add zebra-striping to any table row.

Theme:

Hoverable rows

Add hover-state on table row.

Theme:

These hoverable rows can also be combined with the striped variant:

Theme:

Highlighted tables

Highlight a table row or cell.

Theme:

Bordered tables

Add border on all sides of the table and cells.

Theme:

Tables without borders

A table without borders.

Theme:

Rounded tables

Use the border radius utility classes to make tables more rounded.

Theme:

Thead vertically divided

Header titles vertically divided.

Theme:

Header in gray color

<thead>'s appearance in gray.

Theme:

With shadow-xs

Use the shadow utility classes to make tables more rounded.

Theme:

Headless

A table can render without a table header if no thead is supplied.

Theme:

Table foot

Examples of <tfoot>

Theme:

Captions

A <caption> functions like a heading for a table. It helps users with screen readers to find a table and understand what it’s about and decide if they want to read it.

Theme:

Overflow

Larger tables or tables that cannot be constrained easily should make use of horizontal scroll.

Theme:

Selection

Rows can be selectable by making first column as a selectable column.

Theme:

Search input

Search is used for making dropdown items searchable.

Theme:

With pagination

Example with pagination.

Theme:

Table layout using <div> tag

Use the table, .table-row, .table-cell, .table-caption, .table-column, .table-column-group, .table-header-group, table-row-group, and .table-footer-group utility classes to create elements that behave like their respective table elements.

Theme: