Table
A responsive table component with sorting, sticky headers, and multiple variants.
Basic Table
Invoice | Status | Method | Amount |
---|---|---|---|
INV001 | Paid | Credit Card | $250.00 |
INV002 | Pending | PayPal | $150.00 |
INV003 | Unpaid | Bank Transfer | $350.00 |
Striped Table
Name | Email | Role |
---|---|---|
John Doe | john@example.com | Admin |
Jane Smith | jane@example.com | User |
Bob Johnson | bob@example.com | User |
Sortable Headers
Name | Amount |
---|---|
Product A | $100 |
Product B | $200 |
Installation
npm install @matrix-ui/components
Usage
import {
Table,
TableBody,
TableCaption,
TableCell,
TableFooter,
TableHead,
TableHeader,
TableRow
} from '@matrix-ui/components'
<Table>
<TableHeader>
<TableRow>
<TableHead>Column</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>Data</TableCell>
</TableRow>
</TableBody>
</Table>