Usage
The DashboardToolbar component is used to display a toolbar under the DashboardNavbar component.
Use it inside the header slot of the DashboardPanel component:
pages/index.vue
<script setup lang="ts">
definePageMeta({
layout: 'dashboard'
})
</script>
<template>
<B24DashboardPanel>
<template #header>
<B24DashboardNavbar />
<B24DashboardToolbar />
</template>
</B24DashboardPanel>
</template>
Use the left, default and right slots to customize the toolbar.
In this example, we use the NavigationMenu component to render some links.
API
Props
Slots
Theme
https://github.com/bitrix24/b24ui/tree/main/src/theme/dashboard-toolbar.ts
export default {
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'
}
}