Skip to content
caliper ui pro docs

CRM record

One person or company on a page: the relationship at a glance, one timeline you add calls and notes to, details you edit in place, their deals, the people around them and what is owed next.

Pro

Ostra Freight

ostra.example · Logistics · Lisbon

Health
ARR
€18k
Open pipeline
€48k
Renewal
in 169 days

Timeline

  1. Priya shared Halberd's NetSuite move as a reference; Marta will call David next week.Note · Priya Raman · 10 Oct, 15:00
  2. Sent the SOC 2 report and the data processing terms.Email · Marta Silva · Maya Chen · 9 Oct, 08:45
  3. Marta wants intercompany in scope for Q1. Security review is the last blocker.Call · Marta Silva · Maya Chen · 8 Oct, 10:20
  4. Moved from Proposal to NegotiationDeal · Group close, 4 entities · Maya Chen · 7 Oct, 15:10
  5. Rafael wants a 3-year term priced before he signs.Call · Group close, 4 entities · Maya Chen · 29 Sept, 10:00
  6. Walked Marta's team through intercompany eliminations; they want a sandbox.Meeting · Marta Silva · Maya Chen · 24 Sept, 13:30
  7. Moved from Qualified to ProposalDeal · Group close, 4 entities · Maya Chen · 3 Sept, 09:30
  8. Kick-off with Rafael: budget approved, wants go-live before year end.Meeting · Rafael Abreu · Maya Chen · 2 Sept, 14:00
  9. Four entities, two currencies. NetSuite today; moving to Business Central next year.Note · Maya Chen · 21 Jul, 09:00

State

When to use

  • The detail page behind any person or account list.
  • Products where history matters as much as the current state.

When not to use

  • A quick look from a list; open a drawer instead.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/crm-record

Adds its 22 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

CrmRecord

11 props
PropTypeDefaultDescription
record *CrmRecordRef—
data *CrmData—
stages *readonly DealStage[]—
onDataChange *(data: CrmData) => void—
onOpenRecord *(kind: "person" | "company", id: string) => void—
onOpenDeal((id: string) => void)—Opens a deal, e.g. in the pipeline.
onBack{ label: string; onSelect: () => void; }—Shows a back link, e.g. to the contact list.
todaystringnew Date().toISOString().slice(0, 10)ISO date treated as today.
you *string—Your name, for what you log.
currencystring"EUR"
classNamestring—

Keyboard

  • Keyboard and focus come from Radix dialog, popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.

Accessibility

It exposes status semantics, with aria-hidden, aria-labelledby and aria-label kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/crm-record.md

The index of every part is at /llms.txt.

More in Work tracking