Components / PaperTable

Data Display

PaperTable

Editorial data table with mono headers and hover emphasis.

↗ readable data, no zebra cosplay.

Preview

NameRoleStatus
KaifDesign engineerStable
AshaQA leadReviewing
NiravFrontendShipping
import * as React from 'react'
import { cn } from '@/lib/utils'

export interface PaperTableColumn<T> {
  key: keyof T
  header: string

Installation

Copy this file into your project, export its barrel, and then add it to the master UI index.

  1. Step 1.Create this file:
    components/ui/paperTable/paperTable.tsx
  2. Step 2.Create the barrel:
    components/ui/paperTable/index.ts
  3. Step 3.Add this export in components/ui/index.ts:
    export * from './paperTable'

Variants

Standard

NameRoleStatus
KaifDesign engineerStable
AshaQA leadReviewing
NiravFrontendShipping

Props

PropTypeDefaultDescription
columnsPaperTableColumn<T>[][]Defines header labels and row keys.
rowsT[][]Array of record-shaped table rows.

Examples

Changelog table

Perfect for release notes and status snapshots.

NameRoleStatus
KaifDesign engineerStable
AshaQA leadReviewing
NiravFrontendShipping
const columns = [{ key: 'name', header: 'Name' }]
<PaperTable columns={columns} rows={rows} />

Ops dashboard

Pairs with badges and progress cells for quick triage.

NameRoleStatus
KaifDesign engineerStable
AshaQA leadReviewing
NiravFrontendShipping
<PaperTable columns={columns} rows={rows} />