---
title: "DashboardGroup"
description: "Контейнер дашборда с фиксированной раскладкой, управлением состоянием бокового меню и сохранением состояния интерфейса."
canonical_url: "https://b24-ui.bx-shef.by/docs/components/dashboard-group"
---
# DashboardGroup

> Контейнер дашборда с фиксированной раскладкой, управлением состоянием бокового меню и сохранением состояния интерфейса.

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

Компонент DashboardGroup — основная раскладка, которая оборачивает компоненты [DashboardSidebar](https://b24-ui.bx-shef.by/raw/docs/components/dashboard-sidebar.md) и [DashboardPanel](https://b24-ui.bx-shef.by/raw/docs/components/dashboard-panel.md) и собирает адаптивный интерфейс дашборда.

Используйте его в раскладке или в `app.vue`:

```vue [layouts/dashboard.vue]
<template>
  <B24DashboardGroup>
    <B24DashboardSidebar />

    <slot />
  </B24DashboardGroup>
</template>
```

## API

### Пропсы

```ts
/**
 * Props for the DashboardGroup component
 */
interface DashboardGroupProps {
  /**
   * The element or component this component should render as.
   * @default 'div'
   */
  as?: any;
  b24ui?: { base?: any; } | undefined;
  /**
   * The storage to use for the size.
   * @default 'cookie'
   */
  storage?: "cookie" | "local" | undefined;
  /**
   * Unique id used to auto-save size.
   * @default 'dashboard'
   */
  storageKey?: string | undefined;
  /**
   * Options to pass to the underlying storage (`useCookie` or `useStorage`).
   */
  storageOptions?: Record<string, any> | undefined;
  /**
   * Whether to persist the size in the storage.
   * @default true
   */
  persistent?: boolean | undefined;
  /**
   * The unit to use for size values.
   * @default 'px'
   */
  unit?: "px" | "%" | "rem" | undefined;
}
```

### Слоты

```ts
/**
 * Slots for the DashboardGroup component
 */
interface DashboardGroupSlots {
  default(): any;
}
```

## Тема

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    dashboardGroup: {
      base: 'fixed inset-0 flex overflow-hidden'
    }
  }
})
```

## Sitemap

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