App
Usage
This component implements Reka UI ConfigProvider to provide global configuration to all components:
- Enables all primitives to inherit global reading direction.
- Enables changing the behavior of scroll body when setting body lock.
- Much more controls to prevent layout shifts.
It's also using ToastProvider and TooltipProvider to provide global toasts and tooltips, as well as programmatic modals and slideovers.
Wrap your entire application with the App component in your app.vue file:
<template>
<UApp>
<NuxtPage />
</UApp>
</template>
locale prop to change the locale of your app. This also controls the date/time format in components like Calendar, InputDate, and InputTime.locale prop to change the locale of your app. This also controls the date/time format in components like Calendar, InputDate, and InputTime.API
Props
| Prop | Default | Type |
|---|---|---|
tooltip | TooltipProviderProps
| |
toaster | null | ToasterProps
| |
locale | Locale<T>
| |
portal | 'body' | string | false | true | HTMLElement
|
dir | 'ltr' | "ltr" | "rtl"The global reading direction of your application. This will be inherited by all primitives. |
scrollBody | boolean | ScrollBodyOption The global scroll body behavior of your application. This will be inherited by the related primitives.
| |
nonce | stringThe global |
Slots
| Slot | Type |
|---|---|
default | {} |