---
title: "Metrics"
description: "Headline figures, each with a label and a comparison."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/metrics
---

# Metrics

Headline figures, each with a label and a comparison.

metrics lays out items of label, value and optional detail in equal columns, up to four across, and wraps any more onto further rows. Each value is set at 18pt semibold under a dark rule, with the detail, such as “+18% on Q2”, in small muted text below; metric draws one on its own and never splits it across pages. The executive, financial and annual reports open with a row of them.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/pdf-metrics
```

## Dependencies
- edbn: pdf-shared

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- lib/pdf/components/metrics.typ (3 lines)
- lib/pdf/templates/metrics-example.typ (8 lines)
- lib/pdf/examples/components/metrics.ts (18 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
