# Admin Command Search block

> Admin console top navbar with centered Cmd+K command search and a notifications popover feed

Admin top bar: brand, centered Cmd+K command search Dialog with Kbd hint, notifications Popover feed (avatars, actions, progress, ratings) and a user DropdownMenu with theme toggle. ReUI Badge, Rating.

- Type: Pro block
- Category: [Navbar](https://web.dev.reui.io/blocks/application/navbar.md)
- Page: https://web.dev.reui.io/blocks/application/navbar/navbar-4
- MCP: `get_block("navbar-4")`
- Built with: Avatar, Badge, Button, Button Group, Dialog, Dropdown Menu, Input, Item, Kbd, Popover, Progress, Rating, Scroll Area, Separator, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A wide centered search button that Cmd or Ctrl K also opens, with a New button and a 19 entry notification feed

## Agent notes

- `NOTIFICATIONS` holds 19 sample entries, and no button in `NotificationsPopover` has a handler, Mark all as read included
- `NavbarSearch` opens a Dialog with only an `Input` bound to `query`, so add the result list under it
- The New `Button` in `NavbarActions` has no handler

## When not to use

- A search dialog that must show grouped, filterable result rows: use [Command](https://web.dev.reui.io/components/command.md) (`get_component("command")`)
- A sidebar layout whose header carries the search and a notifications feed: use [Apps Grid Header](https://web.dev.reui.io/blocks/application/app-shell/app-shell-12.md) (`get_block("app-shell-12")`)

## Third-party libraries

- next-themes: [API reference](https://github.com/pacocoursey/next-themes#api), [docs](https://github.com/pacocoursey/next-themes)

## Install

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

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