---
title: "Recent orders"
description: "The latest orders in a table with customer, status badge and total, and a row menu to view, copy the number or refund."
plan: Pro
docs: https://ui.edbn.me/docs/blocks/recent-orders
---

# Recent orders

The latest orders in a table with customer, status badge and total, and a row menu to view, copy the number or refund.

Each row shows the order number and date, the customer, a Paid, Pending, Refunded or Failed badge and the total in tabular figures. In a narrow card a row folds to two lines: number over customer, total over status. Each row's menu views the order, copies its number or starts a refund. Refund asks first in an AlertDialog, shows a spinner while it goes through, says so if it fails, and marks the row Refunded; only paid orders can be refunded. Focus goes back to the row's menu button after the dialog, and screen readers hear each copy and refund. With no orders the card says so.

A Pro block built on Base UI and Tailwind CSS v4.

## 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/recent-orders
```

## Dependencies
- npm: lucide-react@^1.33.0
- edbn: edbn-base, alert-dialog, avatar, badge, button, card, dropdown-menu, empty, spinner, table, text-link

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More dashboards blocks

All 5, with install commands: https://ui.edbn.me/docs/blocks/dashboards · https://ui.edbn.me/docs/blocks/dashboards.md

## 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
