Skip to main content

Installation

Usage

Component API

Table

Root table component with responsive wrapper.

TableHeader

Table header section.

TableBody

Table body section.

TableFooter

Table footer section.

TableRow

Table row with hover state.

TableHead

Table header cell.

TableCell

Table data cell.

TableCaption

Table caption/title.

Examples

Basic Table

Table with footer totals:

With Actions

Table with action buttons:

Selectable Rows

Table with checkbox selection:

Sortable Headers

Clickable headers for sorting:

Striped Rows

Alternating row colors:

Empty State

Show message when no data:

Data Tables

For advanced data tables with sorting, filtering, and pagination, combine the Table component with @tanstack/react-table. See the Data Table documentation for a complete example.

Accessibility

  • Semantic HTML table elements
  • Proper header associations
  • Responsive overflow handling
  • Screen reader support
  • Keyboard navigation