# Editor Action Bar block

> Compact editor action bar navbar with close button, document title, and submit action

Focused-mode bar for an invoice or document editor: close (X) button, vertical Separator, truncating title, a preview collapse toggle, and a submit button that confirms after click. Uses shadcn Button and Separator. For editor toolbar, draft bar.

- Type: Pro block
- Category: [Navbar](https://web.dev.reui.io/blocks/application/navbar.md)
- Page: https://web.dev.reui.io/blocks/application/navbar/navbar-13
- MCP: `get_block("navbar-13")`
- Built with: Button, Card, Separator
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A close button and a truncating h1 title, a preview collapse toggle and a submit button that turns into Sent for review

## Agent notes

- `NAVBAR_CONTEXT` and `NAVBAR_ACTIONS` hold the sample Invoice draft title and every button label; replace them with your document's
- `previewCollapsed` only flips the Collapse preview or Show preview label and `aria-pressed`; no preview exists, so wire it to your pane
- The submit `Button` only calls `setSubmitted` to swap in Sent for review, so no request is sent and nothing resets it

## When not to use

- A writing surface with a formatting toolbar, link bubble and task lists: use the [Rich Text Editor blocks](https://web.dev.reui.io/blocks/application/rich-text-editor.md)
- A CMS editor bar with co-presence avatars and a split Publish that can schedule: use [CMS Publish Bar](https://web.dev.reui.io/blocks/application/navbar/navbar-7.md) (`get_block("navbar-7")`)

## Install

```bash
npx shadcn@latest add @reui/navbar-13
```

## About Navbar blocks

### When to use

- The top bar of a signed in product, with a breadcrumb or switchers, search, alerts, avatars or a user menu
- An editor toolbar with a back or close button, the page name and its run, publish or submit action
- A marketing site header with mega menu panels of linked pages and a Get Started button

### When not to use

- A whole product layout with a side rail, a header and the content area together: use the [App Shell blocks](https://web.dev.reui.io/blocks/application/app-shell.md)
- A keyboard palette that lists, groups and filters results as you type: use [Command](https://web.dev.reui.io/components/command.md) (`get_component("command")`)
- The account settings page a user menu opens, with team, billing and API key forms: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)

### Agent notes

- `Navbar` takes no props, so every label, person and option it shows is fixed in the block; lift them into props to reuse it
- No button, link or menu item routes or calls an API; add an `onClick` or a real `href` where each one should go
- Each page.tsx adds only demo padding or dashed placeholder boxes around `Navbar`, none of which belongs in your layout

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
