---
title: "Hero with command"
description: "A developer tool's centred hero with the install command and a Copy button, a docs link and a terminal panel of the command's output."
plan: Pro
docs: https://ui.edbn.me/docs/blocks/hero-with-command
---

# Hero with command

A developer tool's centred hero with the install command and a Copy button, a docs link and a terminal panel of the command's output.

The install command sits in a read-only field with a Copy button inside it, which reads Copied for two seconds and announces it to screen readers. If the clipboard is blocked, the command is selected so a manual copy still works. Under it, a muted terminal panel shows the command and three lines of output in mono; long lines wrap under their own indent rather than scroll. On phones the field takes the full width and the docs link goes under it.

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/hero-with-command
```

## Dependencies
- edbn: edbn-base, input-group, 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 heroes blocks

All 6, with install commands: https://ui.edbn.me/docs/blocks/heroes (Markdown: https://ui.edbn.me/docs/blocks/heroes.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
