Table

Data Display

A component for displaying tabular data in rows and columns. Use tables for structured data that benefits from comparison across multiple attributes.

Import

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

Usage

Interactive Table

A responsive data table. On mobile, the table switches to a card-based layout for better readability on smaller screens.

ProductCategoryStatusPrice
Sonance VP66In-WallIn Stock$899
Sonance C6RIn-CeilingIn Stock$649
Mariner 86OutdoorLow Stock$1,199
James B10SubwooferOut of Stock$2,499

API Reference

children*
ReactNode

Table content (header, body, rows)