# Incident Postmortem (Pro)

> An incident summed up in one card: severity, duration and impact at rest. Opening it replays the incident: a scanner sweeps the error-rate chart, each event lands in the timeline as it passes with the gap since the last step, and response times count up. Hover the chart for the rate at any minute, pin events to it, and tick off follow-ups.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Timelines |
| Live preview | https://uibrik.com/components/incident-postmortem |
| Writes | 1 file into `components/uibrik/incident-postmortem/` |
| Packages | `@number-flow/react`, `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 25, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/incident-postmortem
```

No license yet? Tell the user Incident Postmortem is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=incident-postmortem#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { IncidentPostmortem } from "@/components/uibrik/incident-postmortem/incident-postmortem";

const events = [
  { at: 6, kind: "detected", title: "Error-rate alert fired on checkout-api.", by: "PagerDuty" },
  { at: 11, kind: "acknowledged", title: "On-call engineer took the page and opened an incident channel.", by: "Maya Chen" },
  // …3 more
];

const rootCause = "A connection pool limit shipped in v2.4.1 was too low for peak traffic, so the primary database refused new connections.";

<IncidentPostmortem
  severity="2"
  title="Checkout API returning 503s"
  impact="18% of checkout requests"
  replay={2.6}
  defaultOpen={false}
  width={500}
  events={events}
  chartFrom={12}
  start="14:02"
  date="Nov 24"
  services={["checkout-api", "payments", "postgres-primary"]}
  rootCause={rootCause}
  // errorRate={[0]}
  // actions={[{ title: "…", done: false }]}
  // onActionsChange={(actions) => {}}
  // open={false}
  // onOpenChange={(open) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/incident-postmortem.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `severity` | `"1" \| "2" \| "3"` | `"2"` | Severity, which sets the accent colour. |
| `title` | `string` | `"Checkout API returning 503s"` | What broke. |
| `impact` | `string` | `"18% of checkout requests"` | Who or what was affected. |
| `replay` | `number` | `2.6` | Seconds the replay takes from impact to resolution. |
| `defaultOpen` | `boolean` | `false` | Show the timeline on mount. |
| `width` | `number` | `500` | Width of the card; never wider than its container. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `events` | `{ at: number; kind: "detected" \| "acknowledged" \| "mitigated" \| "resolved" \| "update"; title: string; by?: string }[]` |  | What happened, in minutes after impact began. The four key kinds drive the response times. |
| `errorRate / chartFrom` | `number[] / number` |  | Error rate per minute in %, starting chartFrom minutes before impact. |
| `start / date` | `string` |  | Clock time impact began ("HH:MM") and the date line. |
| `services` | `string[]` |  | Affected services, shown as chips. |
| `rootCause` | `string` |  | One or two sentences under the card. |
| `actions / onActionsChange` | `{ title: string; owner?: string; done: boolean }[] / (actions) => void` |  | Follow-up items, ticked off in the checklist under the card. |
| `open / onOpenChange` | `boolean / (open) => void` |  | Controlled open state. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Status pages and incident history**: Each past incident reads in two lines and opens into its full timeline. Pairs with [Uptime Bar](https://uibrik.com/components/uptime-bar.md) (Pro) and [Status Dashboard](https://uibrik.com/components/status-dashboard.md) (Pro).
- **Engineering postmortems**: Response times and the gaps between steps make the review about facts, not memory. Pairs with [Stack Trace](https://uibrik.com/components/stack-trace.md).
- **SRE and on-call dashboards**: Hovering an event finds it on the error-rate chart, so cause and effect line up.

## Same shelf: Timelines

- [Milestone Timeline](https://uibrik.com/components/milestone-timeline.md) (Pro): A company history down a spine that fills as you scroll: each milestone's dot fills with a ripple as the line reaches it, and its text brightens as it's reached.
- [Gantt Chart](https://uibrik.com/components/gantt-chart.md) (Pro): A project schedule you can drag: bars follow the pointer and push their dependents along, progress scrubs inside each bar, dependencies are drawn from one task to another, and zoom springs the whole grid.
- [Git Graph](https://uibrik.com/components/git-graph.md) (Pro): A commit graph with branch lanes and merges that plays in from the oldest commit, with search, branch and author filters, Shift-click range compare, and details with parents and diff stats.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/incident-postmortem/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
