Components / PaperTable
Data Display
PaperTable
Editorial data table with mono headers and hover emphasis.
↗ readable data, no zebra cosplay.
Preview
| Name | Role | Status |
|---|---|---|
| Kaif | Design engineer | Stable |
| Asha | QA lead | Reviewing |
| Nirav | Frontend | Shipping |
import * as React from 'react'
import { cn } from '@/lib/utils'
export interface PaperTableColumn<T> {
key: keyof T
header: stringInstallation
Copy this file into your project, export its barrel, and then add it to the master UI index.
- Step 1.Create this file:components/ui/paperTable/paperTable.tsx⎘
- Step 2.Create the barrel:components/ui/paperTable/index.ts⎘
- Step 3.Add this export in
components/ui/index.ts:export * from './paperTable'
Variants
Standard
| Name | Role | Status |
|---|---|---|
| Kaif | Design engineer | Stable |
| Asha | QA lead | Reviewing |
| Nirav | Frontend | Shipping |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
columns | PaperTableColumn<T>[] | [] | Defines header labels and row keys. |
rows | T[] | [] | Array of record-shaped table rows. |
Examples
Changelog table
Perfect for release notes and status snapshots.
| Name | Role | Status |
|---|---|---|
| Kaif | Design engineer | Stable |
| Asha | QA lead | Reviewing |
| Nirav | Frontend | Shipping |
const columns = [{ key: 'name', header: 'Name' }]
<PaperTable columns={columns} rows={rows} />Ops dashboard
Pairs with badges and progress cells for quick triage.
| Name | Role | Status |
|---|---|---|
| Kaif | Design engineer | Stable |
| Asha | QA lead | Reviewing |
| Nirav | Frontend | Shipping |
<PaperTable columns={columns} rows={rows} />