Skip to content

Record Header

The top of a contact or company record: who it is, where it stands, who owns it, and the three things you do first (email, call, note), with the key facts one glance below.

On this page
Used for
  • Contact record
  • Company record
  • Account page
  • Lead drawer
  • Deal side panel

Examples

Record

Too many facts

Installation

npx knowns-ui@latest add record-header
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

name
string
The contact or company name. Used for the initials and the heading.
kind
"contact" | "company"
Default"contact"
A company gets a square avatar with one initial and shows `line` instead of role and company.
role / company
string
Joined as Role at Company under the name.
line
string
Replaces the line under the name.
image
string
A photo or logo URL. Initials show without it or if it fails to load.
stage
{ label, tone? }
A badge beside the name. tone is a Badge tone, default accent.
owner
{ name, src? }
Who owns the record. Shown first in the facts row.
tags
string[]
Small tags under the line.
email / phone
string
Draw the Email and Call buttons as mailto: and tel: links. An invalid value draws no button.
onNote
() => void
Draws the Note button and calls it on click.
actions
ReactNode
Extra buttons after the quick actions.
facts / maxFacts
{ label, value, href? }[] / number
Default- / 5
The key facts row. href is followed only if it is http, https, mailto, tel or a path on the site.
as
"h1" | "h2" | "h3"
Default"h1"
Heading level of the name.

What it handles

  1. 01Shows who or what the record is: a photo, logo or initials, the name, and a line under it (a role at a company, or an industry and city).
  2. 02Puts the stage next to the name as a badge, and the tags under the line.
  3. 03Offers the quick actions: Email and Call are links that open the mail or phone app, Note calls your composer. A button is drawn only for a valid address or number.
  4. 04Closes with a row of key facts, the owner first, such as last touch, open deal and source. Past the limit the rest sit behind a +N more tooltip.
  5. 05Stacks on a phone: the actions go under the name and the facts take two columns.

States

No picture
Initials in the avatar (one letter for a company)
none
No email or phone
The Email or Call button is not drawn
none
Facts over the limit
The extra facts move into a +N more tooltip
120ms fade, ease out
Hover and focus on actions
Standard button states
120ms, ease out
Reduced motion
Nothing moves in this block
0ms

Works with

When to use

When to use

  • The top of a contact or company page in a CRM or an account view.
  • The header of a side panel that opens when a row is clicked.

When not to use

  • A person in a list or a comment: use Avatar.
  • A page title with breadcrumbs and no record: use Page Header.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Record Header to my app and wire it to my own data.
  • I need the top of a contact or company page in a CRM or an account view. Set that up with the Knowns UI Record Header.
  • Which Record Header props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "record-header" }) and search_docs({ query: "record header" }).

Need help?

Stuck on Record Header, or found something off? We read every message.