Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Tables

Build responsive Tailwind CSS table components with striped rows, hover states, borders, captions, row selection, search, pagination, and overflow.

Default table

Start with standard table markup for a simple, readable table.

All examples are responsive, and wide tables can scroll horizontally when space is limited.

Striped rows

Add zebra striping to make rows easier to scan across dense datasets.

Hoverable rows

Add a hover state to help users track the row they are about to interact with.

Combine hover states with striped rows when you want stronger row separation.

Highlighted rows or cells

Highlight specific rows or cells to call attention to important values or statuses.

Bordered tables

Add borders around the table and individual cells for a more structured grid.

Tables without borders

Remove borders for a lighter table style with less visual separation.

Rounded corners

Use border-radius utilities to soften the table container and corners.

Vertically divided header

Add vertical dividers between header cells to separate columns more clearly.

Muted header

Give the <thead> a muted background to distinguish it from the table body.

Table with shadow

Use shadow utilities to add subtle depth around the table.

Without table header

Render a table without a <thead> when the layout does not need column labels.

Table footer

Use <tfoot> for totals, summaries, or other footer rows.

Table captions

A <caption> acts like a heading for the table and helps screen reader users understand what the data represents.

Horizontal scrolling

Wrap wide tables in horizontal overflow so columns stay readable on smaller screens.

Selectable rows

Make the first column selectable to support row selection patterns.

Table with search

Add a search field above the table to support filtering UI in table layouts.

Table with pagination

Pair the table with pagination controls when rows need to be split across views.

Table layout with <div>

Use table display utilities on <div> elements when you need table-like layout without semantic table tags.

© 2026 Preline Labs.