NameStatusAmount
INV001Paid$250.00
INV002Pending$150.00
INV003Unpaid$350.00

Table

A data table component for displaying structured information.

Display tabular data with sorting and filtering capabilities.

Usage

import {
  Table,
  TableHeader,
  TableBody,
  TableRow,
  TableHead,
  TableCell,
} from "@delphi/ui";

export function Example() {
  return (
    <Table>
      <TableHeader>
        <TableRow>
          <TableHead>Name</TableHead>
          <TableHead>Email</TableHead>
        </TableRow>
      </TableHeader>
      <TableBody>
        <TableRow>
          <TableCell>John Doe</TableCell>
          <TableCell>[email protected]</TableCell>
        </TableRow>
      </TableBody>
    </Table>
  );
}

API Reference

ComponentDescription
TableThe root table container
TableHeaderGroups header rows
TableBodyGroups body rows
TableRowA single table row
TableHeadHeader cell (uses <th>)
TableCellData cell (uses <td>)
TableCaptionOptional table caption
Use semantic table elements for proper accessibility
Include a TableCaption for screen reader context
Right-align numeric data for easier scanning
Use consistent formatting within columns
Consider horizontal scroll for tables with many columns
Use tables for layout — they're for tabular data only
Nest interactive elements that break row click patterns
Hide important columns on mobile without alternative access
Make tables wider than the viewport without scroll indication
ESC
No results found