Table
Compose table UI by nesting anatomy components such as A standard table composition using header, body, selected row styling, and footer pagination controls. Use Enable The table family is intentionally small and composable. Use standard HTML attributes through RzTable is a composable SSR table family aligned with semantic HTML table markup. It provides a responsive container, consistent table anatomy components, and style variants for common data presentation patterns.TableHeader, TableBody, TableRow, and TableCell inside RzTable.<RzTable Border>
<TableCaption>A list of your recent invoices.</TableCaption>
<TableHeader>
<TableRow>
<TableHeaderCell>Invoice</TableHeaderCell>
<TableHeaderCell>Status</TableHeaderCell>
<TableHeaderCell class="text-right">Amount</TableHeaderCell>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell class="font-medium">INV001</TableCell>
<TableCell>Paid</TableCell>
<TableCell class="text-right">$250.00</TableCell>
</TableRow>
</TableBody>
</RzTable><RzTable Border Id="orders-demo-table">
<TableCaption>Recent orders</TableCaption>
<TableHeader>
<TableRow>
<TableHeaderCell>Customer</TableHeaderCell>
<TableHeaderCell>Status</TableHeaderCell>
<TableHeaderCell class="text-right">Total</TableHeaderCell>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>Ada Lovelace</TableCell>
<TableCell>Paid</TableCell>
<TableCell class="text-right">$129.00</TableCell>
</TableRow>
<TableRow Selected="true">
<TableCell>Linus Torvalds</TableCell>
<TableCell>Pending</TableCell>
<TableCell class="text-right">$312.15</TableCell>
</TableRow>
</TableBody>
<TableFooter>
<TableRow>
<TableCell Colspan="3">
<TablePagination class="justify-end p-2">
...
</TablePagination>
</TableCell>
</TableRow>
</TableFooter>
</RzTable>TableFooter and TableCell Colspan for summary rows.<RzTable Border>
<TableCaption>A list of recent invoices.</TableCaption>
<TableHeader>
<TableRow>
<TableHeaderCell>Invoice</TableHeaderCell>
<TableHeaderCell>Status</TableHeaderCell>
<TableHeaderCell>Method</TableHeaderCell>
<TableHeaderCell class="text-right">Amount</TableHeaderCell>
</TableRow>
</TableHeader>
<TableBody>...</TableBody>
<TableFooter>
<TableRow>
<TableCell Colspan="3" class="font-medium">Total</TableCell>
<TableCell class="text-right">$750.00</TableCell>
</TableRow>
</TableFooter>
</RzTable>FixedHeader on RzTable to keep header content visible while body rows scroll.<RzTable Border FixedHeader class="max-h-64">
<TableHeader>...</TableHeader>
<TableBody>...</TableBody>
</RzTable>AdditionalAttributes for advanced scenarios.Property Description Type Default ChildContentTable sections and rows rendered inside the table element. RenderFragment?Required BorderAdds table chrome (border and rounded container). boolfalseFixedHeaderApplies sticky styling to the table header and fixed footer styling when present. boolfalseComponent Purpose Notable API TableCaptionRenders semantic <caption> content for table context.ChildContent (required)TableHeaderRenders semantic <thead> and receives fixed-header styling from RzTable.ChildContent (required)TableBodyRenders semantic <tbody> rows.ChildContent (required)TableFooterRenders semantic <tfoot> for totals or controls.ChildContent (required)TableRowRepresents a semantic <tr>.Selected, HoverableOverrideTableHeaderCellSemantic <th>; sets scope="col" by default.ChildContent (required)TableCellSemantic <td> for row content.ChildContent, ColspanTablePaginationLayout wrapper for pagination controls inside a table cell. ChildContent (required)