1. tailwind components
  2. tables

Tables

Provides a set of styles for native HTML table elements.

0FeIron26
1RhRhodium45
2IIodine53
3RnRadon86
4TcTechnetium43

Zebra Striping

Apply the table-zebra class to add alternating row background colors.

0FeIron26
1RhRhodium45
2IIodine53
3RnRadon86
4TcTechnetium43

Extras

Optionally add a header, footer, and caption.

A list of elements from the periodic table.
PositionSymbolNameWeight
0FeIron26
1RhRhodium45
2IIodine53
3RnRadon86
4TcTechnetium43
Total5 Elements

Note that table rows and cells are not interactive. Instead, use anchors or buttons within the last cell.

First NameLast NameEmail 
LiamSteeleliam@email.comView →
AthenaMarksathena@email.comView →
AngelaRiversangela@email.comView →

Layout

See Tailwind’s utility classes for adjusting the table layout algorithm. Apply this to the Table element.

Class Styles
table-auto table-layout: auto;
table-fixed table-layout: fixed;

Hover Rows

Add a visual hover effect using the following Tailwind syntax.

html
<tbody class="[&>tr]:hover:preset-tonal-primary">
	...
</tbody>

Pagination

Pair with the Skeleton Pagination component for large data sets.

View page on GitHub