Skip to main content

Toolbar Items

Toolbar items appear in the global header bar, next to the breadcrumbs, Dev Mode indicator, and alerts icon. Use them for compact actions that should be available across the Dashboard, such as quick search, a channel-aware shortcut, or a link to a custom help panel.

For page-specific actions, use action bar items instead.

Add a Toolbar Item

src/plugins/my-plugin/dashboard/index.tsx

Toolbar components receive no props. Use Dashboard hooks such as useAuth(), useChannel(), usePermissions(), or useNavigate() when the item needs application state.

Positioning

Toolbar items can be positioned relative to built-in toolbar items or to items added by other extensions:

Tsx

The built-in toolbar item IDs are:

IDDescription
dev-mode-indicatorThe Dev Mode badge, visible only when Dev Mode is enabled
alertsThe alerts icon

order can be:

OrderBehavior
beforePlace your item before the target item
afterPlace your item after the target item
replaceReplace the target item with your item

Items without a position are placed before all built-in toolbar items.

Permissions and Conditional Display

Use requiresPermission when the toolbar item should only be available to administrators with specific permissions:

Tsx

Return null from the component when visibility depends on runtime state:

Tsx

Finding Toolbar IDs

Enable Dev Mode, then hover the toolbar item you want to target. The popover shows the itemId you can use in position.itemId.

The Extension Targets reference lists the built-in toolbar IDs.

Best Practices

  • Keep toolbar items icon-sized and provide an accessible label with aria-label.
  • Use toolbar items for global actions only.
  • Prefer before or after over replace unless you intentionally want to take ownership of a built-in toolbar action.
  • Import Dashboard UI components and hooks from @vendure/dashboard.
Was this chapter helpful?
Report Issue
Edited Jun 24, 2026ยทEdit this page