# Workflow Editor block

> Compact workflow editor navbar with active toggle, Test Run action, and history

Slim sticky toolbar for a workflow or automation builder: back link, active/inactive Switch, run-history button, Test Run action, and a more-options DropdownMenu (Export JSON, Duplicate, Share, Delete). Uses Button, Switch, Separator, DropdownMenu.

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

## Best for

An Active or Inactive Switch, a run history button, Test Run and a menu with Export JSON and Delete workflow

## Agent notes

- `active` is local `useState` only, so wire `onCheckedChange` to the stored enabled flag of your workflow
- History, Test Run and every menu item in `NavbarControls`, the destructive Delete workflow too, have no handler
- `NavbarWorkflow` has only a back `Button` and the fixed text Workflows, with no workflow name, so add the title

## When not to use

- A document editor bar with a close button, a title and a single submit action: use [Editor Action Bar](https://web.dev.reui.io/blocks/application/navbar/navbar-13.md) (`get_block("navbar-13")`)
- A content editor bar with viewer avatars and a split publish action: 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-5
```

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