Atoms
Table
A table component for displaying data.
shadcn/uiBased on shadcn/ui with Formance brand styling.
Installation#
npx shadcn@latest add @formance/tableCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow,} from '@/components/ui/table'<Table> <TableCaption>Recent transactions.</TableCaption> <TableHeader> <TableRow> <TableHead>ID</TableHead> <TableHead>Status</TableHead> <TableHead>Amount</TableHead> </TableRow> </TableHeader> <TableBody> <TableRow> <TableCell>TXN001</TableCell> <TableCell>Completed</TableCell> <TableCell>$250.00</TableCell> </TableRow> </TableBody></Table>