Skip to content

Commit 9cda333

Browse files
committed
docs(installation): add vue isolate section
1 parent 62ab016 commit 9cda333

File tree

1 file changed

+22
-1
lines changed
  • docs/content/1.getting-started/2.installation

1 file changed

+22
-1
lines changed

docs/content/1.getting-started/2.installation/2.vue.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,28 @@ It's recommended to install the [Tailwind CSS IntelliSense](https://marketplace.
183183
```
184184

185185
::note{to="/components/app"}
186-
The `App` component provides global configurations and is required for **Toast**, **Tooltip** components to work as well as **Programmatic Overlays**.
186+
The `App` component sets up global config and is required for **Toast**, **Tooltip** and **programmatic overlays**.
187+
::
188+
189+
#### Add the `isolate` class to your root container
190+
191+
```html [index.html]{9}
192+
<!DOCTYPE html>
193+
<html lang="en">
194+
<head>
195+
<meta charset="UTF-8" />
196+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
197+
<title>Nuxt UI</title>
198+
</head>
199+
<body>
200+
<div id="app" class="isolate"></div>
201+
<script type="module" src="/src/main.ts"></script>
202+
</body>
203+
</html>
204+
```
205+
206+
::note
207+
This ensures styles are scoped to your app and prevents issues with overlays and stacking contexts.
187208
::
188209

189210
::

0 commit comments

Comments
 (0)