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

Components

ComponentDescription
TableTable container
TheadHeader section
TbodyBody section
TrTable row
ThHeader cell (bold by default)
TdData cell

Props

Table

PropTypeDescription
childrenReactNodeThead, Tbody, Tr elements
classNamestringTailwind classes
width"full" | "auto" | MeasurementValueTable width

Tr

PropTypeDescription
childrenReactNodeTh or Td elements
classNamestringTailwind classes
heightMeasurementValueRow height

Th / Td

PropTypeDescription
childrenReactNodeCell content
classNamestringTailwind classes
colSpannumberHorizontal span
rowSpannumberVertical span

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


Limitations

  • No individual column width control
  • No floating/positioned tables
  • No table rotation
  • No named table styles