Skip to content

Table

A responsive table component.

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank transfer$350.00
INV004PaidCredit card$450.00
Total$1,200.00

Install

Bash
npx @madeui/cli add table

Usage

TSX
import {
  Table,
  TableBody,
  TableCaption,
  TableCell,
  TableFooter,
  TableHead,
  TableHeader,
  TableRow,
} from '@/components/ui/table';

Composition

TSX
<Table>
  <TableCaption />
  <TableHeader>
    <TableRow>
      <TableHead />
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow>
      <TableCell />
    </TableRow>
  </TableBody>
  <TableFooter />
</Table>
InvoiceMethodAmount
INV001Credit card$250.00
INV002PayPal$150.00
INV003Bank transfer$350.00
Total$750.00

Actions

A table showing per-row actions using a DropdownMenu.

NameRole
Ada LovelaceOwner
Grace HopperAdmin
Margaret HamiltonMember

API reference

Plain semantic table markup — Table wraps the <table> in an overflow-x: auto container for horizontal scrolling on small screens. Every part accepts its native element props plus a style prop (StyleXStyles, merged last).

Was this page helpful?