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.
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.
Vertically divided header
Add vertical dividers between header cells to separate columns more clearly.
Without table header
Render a table without a <thead> when the layout does not need column labels.
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.
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.