Basic usage
With section headers
UseTable.SectionHeader to group rows with labeled sections.
With custom styling
Apply custom classes to any table component.With spanning cells
UsecolSpan and rowSpan attributes for merged cells.
API reference
Table (root)
string
Additional CSS classes to apply to the table element.
ReactNode
required
Table content, typically
Table.Header and Table.Body.Table.Header
string
Additional CSS classes to apply to the thead element.
ReactNode
required
Header content, typically
Table.Row containing Table.Head cells.Table.Body
ReactNode
required
Body content, typically multiple
Table.Row elements.Table.Row
string
Additional CSS classes to apply to the tr element.
() => void
Click handler for the row.
ReactNode
required
Row content, typically
Table.Head or Table.Cell elements.Table.Head
string
Additional CSS classes to apply to the th element.
number
Number of columns the header cell should span.
ReactNode
required
Header cell content.
Table.Cell
string
Additional CSS classes to apply to the td element.
number
Number of columns the cell should span.
number
Number of rows the cell should span.
ReactNode
required
Cell content.
Table.SectionHeader
number
required
Number of columns the section header should span.
{ row?: string; cell?: string }
Custom classes for the row and cell elements.
ReactNode
required
Section header content.