About
CRM-style data grid with tags, sortable columns, relationship strength bars, links and a summary footer.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Records Table to your project and fits it to your theme.
Code
How Records Table is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import RecordsTable, { type RecordRow } from "@/components/ui/records-table";
/* all content lives here; the component only renders what it is given */
const rows: RecordRow[] = [
{ id: "northwind", name: "Northwind Analytics", tags: ["SaaS", "Enterprise"], lastInteraction: "2 days ago", daysSinceContact: 2, strength: "strong", website: "northwind.io" },
{ id: "helio", name: "Helio Payments", tags: ["Fintech", "B2B", "Partner"], lastInteraction: "9 days ago", daysSinceContact: 9, strength: "strong", website: "heliopay.com" },
{ id: "lattice", name: "Lattice Health", tags: ["Healthcare", "Enterprise"], lastInteraction: "3 weeks ago", daysSinceContact: 21, strength: "weak", website: "latticehealth.com" },
{ id: "brightline", name: "Brightline Logistics", tags: ["B2B", "Logistics"], lastInteraction: "2 months ago", daysSinceContact: 61, strength: "veryWeak", website: "brightline.co" },
{ id: "quanta", name: "Quanta Robotics", tags: ["Hardware", "Startup"], lastInteraction: "15 days ago", daysSinceContact: 15, strength: "weak", website: "quanta.ai" },
{ id: "evergreen", name: "Evergreen Capital", tags: ["Fintech", "Enterprise"], lastInteraction: "over 1 year ago", daysSinceContact: 410, strength: "veryWeak" },
{ id: "pixelforge", name: "Pixelforge Studio", tags: ["Agency", "Design"], lastInteraction: "No contact", strength: "none", website: "pixelforge.studio" },
{ id: "orbital", name: "Orbital Cloud", tags: ["Infra", "SaaS", "Partner"], lastInteraction: "4 days ago", daysSinceContact: 4, strength: "strong", website: "orbitalcloud.dev" },
{ id: "meridian", name: "Meridian Retail Group", tags: ["E-commerce", "Enterprise"], lastInteraction: "5 months ago", daysSinceContact: 150, strength: "veryWeak", website: "meridianretail.com" },
{ id: "sable", name: "Sable Security", tags: ["Security", "B2B"], lastInteraction: "about 1 month ago", daysSinceContact: 32, strength: "weak", website: "sablesec.com" },
{ id: "kestrel", name: "Kestrel Labs", tags: ["Startup", "AI"], lastInteraction: "6 days ago", daysSinceContact: 6, strength: "strong", website: "kestrel-labs.com" },
{ id: "tidewater", name: "Tidewater Energy", tags: ["Energy", "Enterprise"], lastInteraction: "almost 2 years ago", daysSinceContact: 700, strength: "none" },
{ id: "cobalt", name: "Cobalt Learning", tags: ["EdTech", "SaaS"], lastInteraction: "2 months ago", daysSinceContact: 58, strength: "weak", website: "cobaltlearning.org" },
{ id: "vantage", name: "Vantage Media", tags: ["Agency", "B2B"], lastInteraction: "8 months ago", daysSinceContact: 240, strength: "veryWeak", website: "vantagemedia.co" },
{ id: "foundry", name: "Foundry Data", tags: ["Infra", "AI", "Startup"], lastInteraction: "11 days ago", daysSinceContact: 11, strength: "strong", website: "foundrydata.io" },
{ id: "atlas", name: "Atlas Freight", tags: ["Logistics", "Enterprise"], lastInteraction: "No contact", strength: "none", website: "atlasfreight.com" },
{ id: "ember", name: "Ember Commerce", tags: ["E-commerce", "SaaS"], lastInteraction: "18 days ago", daysSinceContact: 18, strength: "weak", website: "embercommerce.com" },
{ id: "polaris", name: "Polaris Biotech", tags: ["Healthcare", "AI"], lastInteraction: "3 months ago", daysSinceContact: 92, strength: "veryWeak" },
{ id: "granite", name: "Granite Systems", tags: ["Security", "Infra", "Enterprise"], lastInteraction: "7 days ago", daysSinceContact: 7, strength: "strong", website: "granitesys.com" },
{ id: "lumen", name: "Lumen Mobility", tags: ["Hardware", "Energy"], lastInteraction: "5 weeks ago", daysSinceContact: 36, strength: "weak", website: "lumenmobility.com" },
{ id: "civic", name: "Civic Stack", tags: ["Public sector", "SaaS"], lastInteraction: "10 months ago", daysSinceContact: 300, strength: "veryWeak", website: "civicstack.gov" },
{ id: "harbor", name: "Harbor HR", tags: ["SaaS", "B2B"], lastInteraction: "3 days ago", daysSinceContact: 3, strength: "strong", website: "harborhr.com" },
];
const COMPETITORS: Record<string, string> = {
northwind: "Looker, Mode",
helio: "Stripe, Adyen",
lattice: "Epic, Cerner",
brightline: "Flexport, project44",
quanta: "Boston Dynamics, Agility",
evergreen: "Carta, Addepar",
pixelforge: "Instrument, Work & Co",
orbital: "Render, Fly.io",
meridian: "Shopify Plus, BigCommerce",
sable: "Snyk, Wiz",
kestrel: "Hex, Deepnote",
tidewater: "Arcadia, Octopus",
cobalt: "Coursera, Docebo",
vantage: "Huge, R/GA",
foundry: "Fivetran, Airbyte",
atlas: "Convoy, Uber Freight",
ember: "Bolt, Swell",
polaris: "Recursion, Insitro",
granite: "Okta, CrowdStrike",
lumen: "Lime, Bird",
civic: "Tyler Tech, Granicus",
harbor: "Rippling, Gusto",
};
export default function RecordsTableDemo() {
return (
<div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
<RecordsTable
label="Accounts"
rows={rows}
columns={{
name: { label: "Company", type: "Text", tool: "User input", toolKind: "user" },
tags: { label: "Categories", type: "Multi select", tool: "Atlas 2", toolKind: "model", inputs: ["Company"], prompt: { before: "Tag each ", chip: "Company", after: " with its market categories." } },
last: { label: "Last contact", type: "Date", tool: "User input", toolKind: "user" },
strength: { label: "Relationship", type: "Single select", tool: "Atlas 2", toolKind: "model", inputs: ["Last contact"], prompt: { before: "Score the relationship from ", chip: "Last contact", after: "." } },
link: { label: "Website", type: "URL", tool: "Web search", toolKind: "web", inputs: ["Company"], prompt: { before: "Find the website for ", chip: "Company", after: "." } },
}}
aiColumn={{
label: "Competitors",
type: "Text",
tool: "Web search",
toolKind: "web",
inputs: ["Company"],
prompt: { before: "Find the two closest competitors for ", chip: "Company", after: "." },
resolve: (row) => COMPETITORS[row.id] ?? "—",
}}
strengthLabels={{ strong: "Very strong", weak: "Weak", veryWeak: "Very weak", none: "No communication" }}
tagTones={{
SaaS: "sky",
Enterprise: "violet",
Fintech: "emerald",
B2B: "amber",
Partner: "lime",
Healthcare: "pink",
Logistics: "orange",
Hardware: "zinc",
Startup: "yellow",
Agency: "fuchsia",
Design: "pink",
Infra: "cyan",
"E-commerce": "orange",
Security: "red",
AI: "violet",
Energy: "lime",
EdTech: "sky",
"Public sector": "cyan",
}}
models={["Atlas 2", "Atlas 2 Mini", "Atlas 1.5"]}
/>
</div>
);
}








