---
title: "DashboardToolbar"
description: "Дополнительная панель действий под основной навигацией дашборда."
canonical_url: "https://b24-ui.bx-shef.by/docs/components/dashboard-toolbar"
---
# DashboardToolbar

> Дополнительная панель действий под основной навигацией дашборда.

## Использование

Компонент DashboardToolbar показывает панель инструментов под компонентом [DashboardNavbar](https://b24-ui.bx-shef.by/raw/docs/components/dashboard-navbar.md).

Используйте его в слоте `header` компонента [DashboardPanel](https://b24-ui.bx-shef.by/raw/docs/components/dashboard-panel.md):

```vue [pages/index.vue]
<script setup lang="ts">
definePageMeta({
  layout: 'dashboard'
})
</script>

<template>
  <B24DashboardPanel>
    <template #header>
      <B24DashboardNavbar />

      <B24DashboardToolbar />
    </template>
  </B24DashboardPanel>
</template>
```

Слоты `left`, `default` и `right` настраивают панель инструментов.

```vue [DashboardToolbarExample.vue]
<script setup lang="ts">
import type { NavigationMenuItem } from '@bxshefby/b24ui-nuxt'
import InfoCircleIcon from '@bitrix24/b24icons-vue/outline/InfoCircleIcon'
import UserIcon from '@bitrix24/b24icons-vue/common-b24/UserIcon'
import UserGroupIcon from '@bitrix24/b24icons-vue/common-b24/UserGroupIcon'
import Bell1Icon from '@bitrix24/b24icons-vue/main/Bell1Icon'
import OpenBookIcon from '@bitrix24/b24icons-vue/main/OpenBookIcon'

const items: NavigationMenuItem[][] = [
  [
    {
      label: 'Общие',
      icon: UserIcon,
      active: true
    },
    {
      label: 'Участники',
      icon: UserGroupIcon
    },
    {
      label: 'Уведомления',
      icon: Bell1Icon
    }
  ],
  [
    {
      label: 'Документация',
      icon: OpenBookIcon,
      to: 'https://bitrix24.github.io/b24ui/',
      target: '_blank'
    },
    {
      label: 'Помощь и обратная связь',
      icon: InfoCircleIcon,
      to: 'https://github.com/bitrix24/b24ui',
      target: '_blank'
    }
  ]
]
</script>

<template>
  <B24DashboardToolbar>
    <B24NavigationMenu :items="items" highlight class="flex-1" />
  </B24DashboardToolbar>
</template>
```

> [!NOTE]
> В этом примере для вывода ссылок используется компонент [NavigationMenu](https://b24-ui.bx-shef.by/raw/docs/components/navigation-menu.md).

## API

### Пропсы

```ts
/**
 * Props for the DashboardToolbar component
 */
interface DashboardToolbarProps {
  /**
   * The element or component this component should render as.
   * @default 'div'
   */
  as?: any;
  b24ui?: { root?: SlotClass; left?: SlotClass; right?: SlotClass; } | undefined;
}
```

### Слоты

```ts
/**
 * Slots for the DashboardToolbar component
 */
interface DashboardToolbarSlots {
  default(): any;
  left(): any;
  right(): any;
}
```

## Тема

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    dashboardToolbar: {
      slots: {
        root: 'shrink-0 flex items-center justify-between border-0 px-4 gap-1.5 overflow-x-auto min-h-[49px]',
        left: 'flex items-center gap-1.5',
        right: 'flex items-center gap-1.5'
      }
    }
  }
})
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
