Displaysrc/components/ui/table.tsx

Table

Displays tabular data with shadcn-compatible styling.

Preview

A list of your recent invoices.
InvoiceStatusMethodAmount
INV001PaidCredit Card$250.00
INV002PendingPayPal$150.00
INV003UnpaidBank Transfer$350.00
INV004PaidCredit Card$450.00
INV005PaidPayPal$550.00
INV006PendingBank Transfer$200.00
INV007UnpaidCredit Card$300.00
Total$2,500.00

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Table } from "@/components/ui/table"

export function Example() {
  return <Table>Table</Table>
}

API Reference

ExportPurpose
TableComposable part exported by `@/components/ui/table`.