Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Contact Record Header

ProNew

The top of a person's record: portrait, name, role and company, slots for a score or tags and for actions, and a row of short facts such as owner and last contacted.

Installation

pnpm dlx shadcn@latest add @viewport/contact-record-header

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
name*string—
titlestring

Their role, e.g. "Head of Revenue".

—
companystring

Where they work. Becomes a link when `companyHref` is given.

—
companyHrefstring—
imagestring

A portrait. Initials are drawn when there is none.

—
metaReact.ReactNode

Small items under the name: a lead score, a relationship meter, tags.

—
facts{ label: string; value: React.ReactNode }[]

Short facts in a row under the header, e.g. owner, last contacted, lifetime value.

[]
actionsReact.ReactNode

Buttons at the end: call, email, a menu.

—
as"h1" | "h2" | "h3"

The heading level for the name.

—

Accessibility

  • The name is a heading at a level you choose.
  • Facts are a description list.
  • Actions wrap under the name on narrow screens.
  • Server component with no client JavaScript.