mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 04:29:37 +01:00
39 lines
1.0 KiB
Markdown
39 lines
1.0 KiB
Markdown
---
|
|
title: App
|
|
description: Wraps your app to provide global configurations and more.
|
|
links:
|
|
- label: GitHub
|
|
icon: i-simple-icons-github
|
|
to: https://github.com/benjamincanac/ui3/tree/dev/src/runtime/components/App.vue
|
|
---
|
|
|
|
## Usage
|
|
|
|
This component implements Radix Vue [ConfigProvider](https://www.radix-vue.com/utilities/config-provider.html) 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](https://www.radix-vue.com/components/toast.html#provider) and [TooltipProvider](https://www.radix-vue.com/components/tooltip.html#provider) to provide global toasts and tooltips, as well as programmatic modals and slideovers.
|
|
|
|
Use it as at the root of your app:
|
|
|
|
```vue [app.vue]
|
|
<template>
|
|
<UApp>
|
|
<NuxtPage />
|
|
</UApp>
|
|
</template>
|
|
```
|
|
|
|
## API
|
|
|
|
### Props
|
|
|
|
:component-props
|
|
|
|
### Slots
|
|
|
|
:component-slots
|