Records Table

CRM-style grid with tags, sorting and relationship status.

Installation

pnpm dlx shadcn@latest add @ward/records-table

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/records-table.json

Usage

import RecordsTable from "@/components/ward/RecordsTable";
<RecordsTable
  fill
  rows={[
    { id: "aurora", name: "Aurora Works — Reykjavík", tags: ["Brand", "Seasonal"], last: "9 days ago", strength: "strong", website: "aurora-works.example.com" },
    { id: "kumo", name: "Kumo Studio — Tokyo", tags: ["B2C", "Cafe"], last: "3 weeks ago", strength: "weak" },
  ]}
/>

Props

PropTypeDefaultDescription
variantstring"Default"Accepted for registry parity; the component has a single variant.
rowsRecordRow[]INITIAL_ROWSRecords shown in the grid, each with a name, tags, last contact, connection strength and optional website.
fillbooleanfalseMakes the table stretch to fill the height of its parent instead of using a capped scroll height.

Ward · Version 1.1.0 · Registry manifest