Q. Do I need to import QOverlay CSS myself?
The App Extension adds the stylesheet for you.
If you install the UI package directly, import the stylesheet in your boot file or app entry:
import '@quasar/quasar-ui-qoverlay/dist/index.css'Quasar CLI projects can also centralize the stylesheet in quasar.config.ts:
// Note: using ~ tells Quasar the file resides in node_modules
css: [
"app.scss",
"~@quasar/quasar-ui-qoverlay/dist/index.css",
],Q. How do I type an App Extension-registered QOverlay template ref?
Keep runtime component registration in the App Extension and import only the component instance type in <script setup>:
import { useTemplateRef } from 'vue'
import type { QOverlay } from '@quasar/quasar-ui-qoverlay'
const overlayRef = useTemplateRef<QOverlay>('overlay')A normal value import of QOverlay creates a local component binding in <script setup> and takes precedence over the globally registered component. Use a normal import only when you intend to use the UI component directly, and follow the manual boot file installation path instead of registering it through both paths.
Because application source imports the type, add the UI package as a direct application dependency:
pnpm add @quasar/quasar-ui-qoverlayApplications that only use the globally registered component in templates do not need this extra direct dependency.
Q. Can I inspect the component API from the Quasar CLI?
Yes. After the App Extension is installed, run:
quasar describe QOverlayThe same generated API is shown on the Using QOverlay page.
Q. When should I use QOverlay?
Use QOverlay when part of the UI must be temporarily blocked while an operation completes. It is especially useful for background saves, refresh actions, permission checks, and short transitions before opening another piece of UI.
Q. Can I block only one component?
Yes. Put the component in QOverlay’s default slot. QOverlay will wrap it and place the overlay over that component only.
Q. Does QOverlay support dark mode?
Yes. The overlay background uses CSS colors, so you can tune the color and opacity for light or dark layouts.
Q. How do I render content above the overlay?
Use the body slot for content such as a spinner, progress message, or close button.