# PR Review Card (Pro)

> A pull request in three small tiles: a ring of checks, a stack of reviewers and the change size. Picking a tile opens its detail under the row, running checks finish live, and Merge unlocks once checks pass and enough reviewers approve.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › Cards |
| Live preview | https://uibrik.com/components/pr-review-card |
| Writes | 1 file into `components/uibrik/pr-review-card/` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (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/pr-review-card
```

No license yet? Tell the user PR Review Card is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=pr-review-card#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 { PrReviewCard } from "@/components/uibrik/pr-review-card/pr-review-card";

const checks = [
  { name: "Lint", status: "success", duration: 18 },
  { name: "Type check", status: "success", duration: 41 },
  // …5 more
];

const reviewers = [
  { name: "Kai Müller", state: "approved" },
  { name: "Nora Lind", state: "approved" },
  // …1 more
];

const files = [
  { path: "app/onboarding/page.tsx", additions: 148, deletions: 62 },
  { path: "app/onboarding/steps.tsx", additions: 124, deletions: 0 },
  // …3 more
];

<PrReviewCard
  title="New three-step onboarding"
  repo="acme/web"
  branch="feat/onboarding-v2"
  requiredApprovals={2}
  simulate
  checkTime={2.4}
  defaultTab="checks"
  mergedColor="#7c5cff"
  width={480}
  checks={checks}
  reviewers={reviewers}
  files={files}
  author="Elena Rossi"
  number={482}
  base="main"
  // merged={false}
  // onMerge={() => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/pr-review-card.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `title` | `string` | `"New three-step onboarding"` | Pull request title. |
| `repo` | `string` | `"acme/web"` | Repository shown above the title. |
| `branch` | `string` | `"feat/onboarding-v2"` | Branch being merged. |
| `requiredApprovals` | `number` | `2` | Approvals needed before Merge unlocks. |
| `simulate` | `boolean` | `true` | Finish running checks on their own once in view. |
| `checkTime` | `number` | `2.4` | Seconds each running check takes when simulating. |
| `defaultTab` | `"" \| "checks" \| "reviews" \| "changes"` | `"checks"` | Tile open on mount. |
| `mergedColor` | `string` | `"#7c5cff"` | Colour of the merged state. |
| `width` | `number` | `480` | 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 |
| --- | --- | --- | --- |
| `checks` | `{ name: string; status: "success" \| "failed" \| "running" \| "queued"; duration?: number }[]` |  | CI checks in order. duration is seconds. |
| `reviewers` | `{ name: string; avatar?: string; state: "approved" \| "changes" \| "commented" \| "pending" }[]` |  | Requested reviewers and their verdicts. |
| `files` | `{ path: string; additions: number; deletions: number }[]` |  | Changed files. |
| `author / number / base` | `string / number / string` |  | Who opened it, its number, and the branch it merges into. |
| `merged / onMerge` | `boolean / () => void` |  | Controlled merged state, and a callback when Merge is pressed. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Developer dashboards**: Checks, reviews and change size fit one card, with the detail a tap away. Pairs with [Deploy Pipeline](https://uibrik.com/components/deploy-pipeline.md) (Pro).
- **Dev tool landing pages**: Checks finishing live and a merge that unlocks show the review flow in a few seconds. Pairs with [Git Graph](https://uibrik.com/components/git-graph.md) (Pro).
- **Team activity feeds**: Each open pull request reads at a glance, and the reason it's blocked is always spelled out.

## Same shelf: Cards

- [Event Feed](https://uibrik.com/components/event-feed.md): A live feed card where new events drop in at the top with a soft highlight, push the rest down and age in real time.
- [File Card](https://uibrik.com/components/file-card.md): A document card whose corner curls on hover to show the next page, with older versions stacked behind the sheet.
- [Security Scan](https://uibrik.com/components/security-scan.md) (Pro): A security check that runs itself for a bento tile: a shield outline draws in and a band of light sweeps through it while checks resolve one by one, then the shield fills, a check draws across it and a pulse rolls out.
- [Signal Filter](https://uibrik.com/components/signal-filter.md) (Pro): Anonymous traffic drifts across a curved sheet into a scanner line: grey silhouettes, visitor chips and empty coins come out the other side as real faces with a check, subscriber chips and paid coins, the change wiping through each one exactly where it crosses.
- [Subscriber Funnel](https://uibrik.com/components/subscriber-funnel.md) (Pro): A crowd of avatars waiting above a funnel; one at a time they drop in, are taken in by your mark, and come out as a new subscriber card while the count rolls up.
- [Terminal Demo](https://uibrik.com/components/terminal-demo.md) (Pro): A terminal that plays a short session on view: the command types itself, output arrives line by line and a progress bar fills.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/pr-review-card/` 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
