---
title: "UiTitleBar"
description: "Admin page title bar with action buttons. Wraps the App Bridge <ui-title-bar> web component."
canonical_url: "https://shopify.yan.ad/components/app-bridge-ui/ui-title-bar"
---
# UiTitleBar

> Admin page title bar with action buttons. Wraps the App Bridge <ui-title-bar> web component.

## Live preview

This component integrates with Shopify App Bridge and requires an authenticated Shopify admin host. It cannot run faithfully in a standalone documentation iframe. Use the [authenticated playground](https://github.com/yan-ad/nuxt-shopify/tree/main/playground) to try it with your development store.

## Shopify admin example

```vue
<script setup>
function handleCreate() { /* ... */ }
function handleExport() { /* ... */ }
</script>

<template>
  <ShUiTitleBar
    title="Products"
    :primary-action="{ label: 'Create product', onClick: handleCreate }"
    :actions="[
      { label: 'Export', onClick: handleExport },
    ]"
  />
</template>
```

With a breadcrumb (back button):

```vue
<template>
  <ShUiTitleBar
    title="Edit Product"
    :primary-action="{ label: 'Save', onClick: handleSave }"
    :breadcrumb="{ label: 'Products', onClick: () => navigateTo('/products') }"
  />
</template>
```

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Title displayed in the Admin bar
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        primaryAction
      </code>
    </td>
    
    <td>
      <code>
        TitleBarAction
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Primary action button (highlighted)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        breadcrumb
      </code>
    </td>
    
    <td>
      <code>
        Omit<TitleBarAction, 'disabled'>
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Back button / breadcrumb
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        actions
      </code>
    </td>
    
    <td>
      <code>
        TitleBarAction[]
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Additional action buttons
    </td>
  </tr>
</tbody>
</table>

```ts
interface TitleBarAction {
  label: string
  disabled?: boolean
  onClick: () => void
}
```

## Notes

- Unlike the raw `<ui-title-bar>` web component (which uses `<button>` children), `<ShUiTitleBar>` uses **typed props** with `onClick` callbacks for full TypeScript support.
- Renders native `<button>` children from the action props internally.

## App Bridge Element

Renders as `<ui-title-bar>`. See [App Bridge TitleBar docs](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-title-bar).


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
