Object header

An object header names the thing you are looking at: its key, status and title on one row with its actions, and one quiet line of facts beneath. It is never taller than it needs to be.

Previewapps/web/components/ui/KbObjectHeader.tsx

Key, status, title, actions, facts

KB-1042Open

Cannot export my report

  • Chat
  • Ana Ruiz
  • 2h ago
Show code
<KbObjectHeader
  objectKey={<KbKey>KB-1042</KbKey>}
  status={<KbLozenge tone="sky">Open</KbLozenge>}
  title="Cannot export my report"
  actions={<KbButton variant="primary" size="sm">Resolve</KbButton>}
  meta={<KbMetaList label="Request facts" items={facts} />}
/>

A long title

The title stays on one line with an ellipsis, or two lines when asked. The full text is the tooltip.

KB-1043Handed off

Customer cannot export the quarterly sustainability report to PDF after the latest update and needs it today

Show code
<KbObjectHeader title="…" titleLines={2} />