Usage
The Main component renders a <main> element that works together with the Header component to create a full-height layout that extends to the viewport's available height.
The Main component uses the
--b24ui-header-height CSS variable to position itself correctly below the Header.Examples
Within app.vue
Use the Main component in your app.vue or in a layout:
app.vue
<template>
<B24App>
<B24Header />
<B24Main>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</B24Main>
<B24Footer />
</B24App>
</template>
API
Props
Slots
Theme
https://github.com/bitrix24/b24ui/tree/main/src/theme/main.ts
export default {
base: 'min-h-[calc(100vh-var(--b24ui-header-height))]'
}