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/ContactForm.tsx
src/ContactForm.tsx
import { useState, type FormEvent } from "react";import { STAGES, type Contact, type Stage } from "./store"; export function ContactForm({ onSave, onCancel }: { onSave: (c: Omit<Contact, "id">) => void; onCancel: () => void }) {  const [form, setForm] = useState<Omit<Contact, "id">>({ name: "", company: "", email: "", stage: "Lead", value: 0, note: "" });  const [error, setError] = useState<string | null>(null);  const set = <K extends keyof typeof form>(k: K, v: (typeof form)[K]) => setForm((f) => ({ ...f, [k]: v }));   function submit(e: FormEvent) {    e.preventDefault();    if (!form.name.trim() || !form.company.trim()) return setError("Name and company are required.");    if (!form.email.includes("@")) return setError("Enter a valid email.");    onSave({ ...form, name: form.name.trim(), company: form.company.trim() });  }   return (    <div className="fixed inset-0 z-20 flex items-end justify-center bg-black/40 p-4 sm:items-center" role="dialog" aria-modal="true" aria-labelledby="contact-form-title">      <form onSubmit={submit} className="w-full max-w-md space-y-3 rounded-2xl bg-white p-6 shadow-2xl">        <h2 id="contact-form-title" className="text-lg font-semibold">          New contact        </h2>        <label className="block text-sm">          <span>Name</span>          <input value={form.name} onChange={(e) => set("name", e.target.value)} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2" autoFocus />        </label>        <label className="block text-sm">          <span>Company</span>          <input value={form.company} onChange={(e) => set("company", e.target.value)} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2" />        </label>        <label className="block text-sm">          <span>Email</span>          <input type="email" value={form.email} onChange={(e) => set("email", e.target.value)} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2" />        </label>        <div className="grid grid-cols-2 gap-3">          <label className="block text-sm">            <span>Stage</span>            <select value={form.stage} onChange={(e) => set("stage", e.target.value as Stage)} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2">              {STAGES.map((s) => (                <option key={s}>{s}</option>              ))}            </select>          </label>          <label className="block text-sm">            <span>Value ($)</span>            <input type="number" min={0} value={form.value} onChange={(e) => set("value", Number(e.target.value))} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2" />          </label>        </div>        <label className="block text-sm">          <span>Note</span>          <textarea value={form.note} onChange={(e) => set("note", e.target.value)} rows={2} className="mt-1 w-full rounded-md border border-slate-300 px-3 py-2" />        </label>        {error ? (          <p role="alert" className="text-sm text-red-600">            {error}          </p>        ) : null}        <div className="flex justify-end gap-2 pt-2">          <button type="button" onClick={onCancel} className="rounded-md border border-slate-300 px-4 py-2 text-sm">            Cancel          </button>          <button type="submit" className="rounded-lg bg-slate-900 px-4 py-2 text-sm font-medium text-white">            Save contact          </button>        </div>      </form>    </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.