---
title: "App"
description: "Оборачивает приложение и даёт глобальные настройки и дополнительные возможности."
canonical_url: "https://b24-ui.bx-shef.by/docs/components/app"
---
# App

> Оборачивает приложение и даёт глобальные настройки и дополнительные возможности.

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

Компонент использует [ConfigProvider](https://reka-ui.com/docs/utilities/config-provider) из Reka UI, чтобы передать всем компонентам глобальную конфигурацию:

- Все примитивы наследуют общее направление чтения.
- Можно менять поведение прокрутки страницы при блокировке `body`.
- Больше настроек, которые не дают содержимому «прыгать».

Кроме того, он использует [ToastProvider](https://reka-ui.com/docs/components/toast#provider) и [TooltipProvider](https://reka-ui.com/docs/components/tooltip#provider) для глобальных уведомлений и подсказок.

Разместите его в корне приложения:

```vue [app.vue]
<template>
  <B24App>
    <NuxtPage />
  </B24App>
</template>
```

**Nuxt:**

> [!TIP]
> See: /docs/getting-started/integrations/i18n/nuxt/#locale
> Как сменить локаль приложения пропсом `locale` — в руководстве. Локаль задаёт и формат даты и времени в компонентах Calendar, InputDate и InputTime.

**Vue:**

> [!TIP]
> See: /docs/getting-started/integrations/i18n/vue/#locale
> Как сменить локаль приложения пропсом `locale` — в руководстве. Локаль задаёт и формат даты и времени в компонентах Calendar, InputDate и InputTime.

## API

### Пропсы

```ts
/**
 * Props for the App component
 */
interface AppProps {
  tooltip?: TooltipProviderProps | undefined;
  toaster?: null | ToasterProps | undefined;
  locale?: Locale<T> | undefined;
  /**
   * @default 'body'
   */
  portal?: string | false | true | HTMLElement | undefined;
  /**
   * The global reading direction of your application. This will be inherited by all primitives.
   * @default 'ltr'
   */
  dir?: "ltr" | "rtl" | undefined;
  /**
   * The global scroll body behavior of your application. This will be inherited by the related primitives.
   */
  scrollBody?: boolean | ScrollBodyOption | undefined;
  /**
   * The global `nonce` value of your application. This will be inherited by the related primitives.
   */
  nonce?: string | undefined;
}
```

### Слоты

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

## Sitemap

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