Skip to main content
Tables with headers, borders, cell spanning, and styling.

Components


Props

Table

Tr

Th / Td


Width


Borders

All borders

Border colors

Border thickness

Individual sides


Padding


Background colors


Alignment

Horizontal

Vertical


Column span


Row span

No placeholder cells needed for spanned rows.

Rich content

Cells can contain formatted text:

Row height


Full example


Spacing

mt-* and mb-* add space above and below the table, like on a paragraph:
Two tables in a row are kept apart by a 1pt paragraph; Word would otherwise merge them into one table.

Column widths

Lengths and percentages (of the table width) are fixed; fr columns share what is left, like CSS Grid. Without columns, columns are equal. With them, the table keeps these widths in Word instead of fitting its content.

Page breaks

Rows in Thead repeat on each page the table continues on and stay with the first body row, so a title never sits alone at the bottom of a page. Tailwind’s break utilities control the rest:

Structure

A Table accepts only Thead, Tbody and Tr; Thead and Tbody accept only Tr; Tr accepts only Th and Td. Anything else rejects render() with an error instead of being left out of the document.

Limitations

  • No floating/positioned tables
  • No table rotation