CApp
CApp is the root layout component of Vueland UI. It must wrap your entire application. It sets up the scroll management API for overlays (dialogs, menus, tooltips) and provides the role="application" landmark for accessibility.
Basic usage
<template>
<c-app>
<c-main>
<!-- your page content -->
</c-main>
</c-app>
</template>Scroll management
CApp provides ApplicationApi via inject, consumed internally by CDialog, CMenu, and COverlay to block and restore page scroll when overlays are open. You can also access it directly with composable useApplication.
import { useApplication } from '@vueland/ui/composables'
const app = useApplication()
app?.lockScroll() // lock scroll
app?.unlockScroll() // restore scroll
app?.getScrollTop() // current scroll Y
app?.getScrollLeft() // current scroll XAPI
Props
CApp has no props.
Slots
defaultEvents
CApp emits no events.
Expose
CApp exposes nothing directly. Use inject($APP_API_KEY) to access the scroll API.
CSS classes
c-appc-app__wrapperc-app--lock-scrollCSS variables
CApp does not define customizable component tokens. When scroll is locked, it temporarily writes runtime variables to the root element:
--c-app-scroll-toplockScroll()--c-app-scroll-leftlockScroll()These values are managed by useApplicationScroll and removed after unlockScroll().
Accessibility
The root element carries role="application", which marks the area as an interactive web application for screen readers.
