--- title: Table description: A responsive table component. component: true --- ## Installation CLI Manual ```bash npx shadcn@latest add table ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx showLineNumbers import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table" ``` ```tsx showLineNumbers A list of your recent invoices. Invoice Status Method Amount INV001 Paid Credit Card $250.00
``` ## Data Table You can use the `` component to build more complex data tables. Combine it with [@tanstack/react-table](https://tanstack.com/table/v8) to create tables with sorting, filtering and pagination. See the [Data Table](/docs/components/data-table) documentation for more information. You can also see an example of a data table in the [Tasks](/examples/tasks) demo.