| 0 | Fe | Iron | 26 |
| 1 | Rh | Rhodium | 45 |
| 2 | I | Iodine | 53 |
| 3 | Rn | Radon | 86 |
| 4 | Tc | Technetium | 43 |
Zebra Striping
Apply the table-zebra class to add alternating row background colors.
| 0 | Fe | Iron | 26 |
| 1 | Rh | Rhodium | 45 |
| 2 | I | Iodine | 53 |
| 3 | Rn | Radon | 86 |
| 4 | Tc | Technetium | 43 |
Extras
Optionally add a header, footer, and caption.
| Position | Symbol | Name | Weight |
|---|---|---|---|
| 0 | Fe | Iron | 26 |
| 1 | Rh | Rhodium | 45 |
| 2 | I | Iodine | 53 |
| 3 | Rn | Radon | 86 |
| 4 | Tc | Technetium | 43 |
| Total | 5 Elements | ||
Navigation
Note that table rows and cells are not interactive. Instead, use anchors or buttons within the last cell.
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.
<tbody class="[&>tr]:hover:preset-tonal-primary">
...
</tbody>Pagination
Pair with the Skeleton Pagination component for large data sets.