Skip to content

CRM · React

CRM pipeline

Contacts table plus a five-stage deal pipeline board with inline stage changes, all persisted locally.
CRM pipeline starter, as built from its own files
Starter screenshot captured from this template's own build at 1440×900. It shows the template as it ships, not output generated from a prompt.

What you get

A small CRM with two views over the same data: a searchable contacts table with stage selects and delete, and a kanban-style pipeline (Lead → Qualified → Proposal → Won/Lost) where deals move between columns with keyboard-accessible buttons. State lives in localStorage via a typed hook so the app works offline; swap src/store.ts for API calls when you add a backend.

Files, exactly as copied.

Exactly what is copied into a new project: 14 files, nothing generated.

Raw data: GET /api/v1/templates/vite-react-crm

src/App.tsx
src/App.tsx
import { useState } from "react";import { useContacts } from "./store";import { ContactsTable } from "./ContactsTable";import { Pipeline } from "./Pipeline";import { ContactForm } from "./ContactForm"; const money = (n: number) => "$" + n.toLocaleString(); const nav = [  { label: "Pipeline", d: "M4 5h4v14H4zM10 5h4v9h-4zM16 5h4v6h-4z" },  { label: "Contacts", d: "M16 19v-1a4 4 0 00-4-4H8a4 4 0 00-4 4v1M10 10a3 3 0 100-6 3 3 0 000 6zM20 19v-1a3 3 0 00-2-2.8" },  { label: "Reports", d: "M4 19h16M7 15v-4M12 15V7M17 15v-6" },]; export default function App() {  const store = useContacts();  const [tab, setTab] = useState<"contacts" | "pipeline">("pipeline");  const [adding, setAdding] = useState(false);  const open = store.contacts.filter((c) => c.stage !== "Won" && c.stage !== "Lost");  const pipelineValue = open.reduce((s, c) => s + c.value, 0);  const won = store.contacts.filter((c) => c.stage === "Won").reduce((s, c) => s + c.value, 0);  const closed = store.contacts.filter((c) => c.stage === "Won" || c.stage === "Lost").length;  const winRate = closed ? Math.round((store.contacts.filter((c) => c.stage === "Won").length / closed) * 100) : 0;   return (    <div className="min-h-screen bg-slate-50 text-slate-900 lg:grid lg:grid-cols-[220px_1fr]">      <aside className="hidden border-r border-slate-200 bg-white px-3 py-5 lg:block">        <div className="flex items-center gap-2.5 px-2">          <span className="grid h-8 w-8 place-items-center rounded-lg bg-gradient-to-br from-sky-500 to-sky-600 text-sm font-bold text-white">P</span>          <span className="font-semibold tracking-tight">Pipeline CRM</span>        </div>        <nav className="mt-8 space-y-0.5 text-sm" aria-label="Sections">          {nav.map((n) => {            const current = n.label.toLowerCase() === tab;            return (              <button                key={n.label}                type="button"                onClick={() => (n.label === "Reports" ? undefined : setTab(n.label.toLowerCase() as "contacts" | "pipeline"))}                className={"flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left " + (current ? "bg-slate-100 font-medium text-slate-900" : "text-slate-600 hover:bg-slate-50")}              >                <svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth={1.8} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">                  <path d={n.d} />                </svg>                {n.label}              </button>            );          })}        </nav>      </aside>       <div className="min-w-0">        <header className="border-b border-slate-200 bg-white">          <div className="flex flex-wrap items-center justify-between gap-3 px-4 py-4 sm:px-8">            <div>              <p className="text-xs text-slate-500">Sales · Q2</p>              <h1 className="text-xl font-semibold tracking-tight">Deals</h1>            </div>            <div className="flex items-center gap-2">              <div className="flex rounded-lg border border-slate-200 bg-slate-50 p-0.5 text-sm" role="tablist" aria-label="View">                {(["pipeline", "contacts"] as const).map((t) => (                  <button key={t} type="button" role="tab" aria-selected={tab === t} onClick={() => setTab(t)} className={"rounded-md px-3 py-1.5 capitalize transition " + (tab === t ? "bg-white font-medium shadow-sm" : "text-slate-500 hover:text-slate-900")}>                    {t}                  </button>                ))}              </div>              <button type="button" onClick={() => setAdding(true)} className="rounded-lg bg-slate-900 px-3.5 py-2 text-sm font-medium text-white shadow-sm hover:bg-slate-700">                + New contact              </button>            </div>          </div>        </header>        <main className="px-4 py-6 sm:px-8">          <div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">            <Stat label="Contacts" value={String(store.contacts.length)} hint="All stages" />            <Stat label="Open deals" value={String(open.length)} hint="Lead to proposal" />            <Stat label="Pipeline value" value={money(pipelineValue)} hint="Open deals only" />            <Stat label="Won" value={money(won)} hint={winRate + "% win rate"} />          </div>          <div className="mt-6">{tab === "pipeline" ? <Pipeline store={store} /> : <ContactsTable store={store} />}</div>          {adding ? (            <ContactForm              onCancel={() => setAdding(false)}              onSave={(c) => {                store.add(c);                setAdding(false);              }}            />          ) : null}        </main>      </div>    </div>  );} function Stat({ label, value, hint }: { label: string; value: string; hint: string }) {  return (    <div className="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm">      <p className="text-sm text-slate-500">{label}</p>      <p className="mt-1.5 text-2xl font-semibold tracking-tight">{value}</p>      <p className="mt-1 text-xs text-slate-400">{hint}</p>    </div>  );}

Remix

Remix this template.

Describe what to change and the agent starts from CRM pipeline's files. The box is already started for you: finish “Start from CRM pipeline and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Vite + React + TypeScript, so installs are fast.

  • react^19.1.0
  • react-dom^19.1.0
  • vite^6.3.0
  • @vitejs/plugin-react^4.4.0
  • tailwindcss^4.1.0
  • @tailwindcss/vite^4.1.0
  • typescript^5.8.0

How it runs

Framework
Vite + React + TypeScript
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
5173
Entry route
/

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on CRM pipeline

Create a free account, start from this template, and ask the AI agent to turn it into your app.