Skip to content

Table

Organizes structured records into clear rows and columns with column headers, hover highlights, and responsive layouts.

4.7 KB
•
Updated on August 21, 2026

Installation

Bash

Usage

Code
Code

Anatomy

Code

Features

Card Style Variant

Table styled as card rows with isolated row containers (variant="card").

API Reference

Table

The main table container component. Set variant="card" for a card-style table: separated borders, rounded corners, and row surfaces that read as cards. That pairs well with a Frame (page chrome) or Card (card shell with optional header actions). The default variant is a simpler row layout with standard borders.

Code

TableHeader

Header section of the table containing column headers.

Code

TableBody

Body section of the table containing table rows and data.

Code

TableFooter

Footer section of the table.

Code

TableRow

A row in the table.

Code

TableHead

A header cell in the table.

Code

TableCell

A data cell in the table.

Code

TableCaption

A caption for the table.

Code

Examples

Frame with card-style table
Table with TanStack Table and checkboxes
Table with TanStack Table, sorting, and pagination
CardFrame with TanStack Table and checkboxes
CardFrame with card-style table
CardFrame with TanStack Table, sorting, and pagination
CardFrame with TanStack Table, sorting, and pagination