Foundations

Layouts and page options

The four layouts, what each one renders and the definePageMeta options every page can set.

A page picks its layout with definePageMeta({ layout }). Without it, Nuxt uses default.

Layout
Used by
Renders
Needs a session
defaultDashboards, apps, management and UI pagesSidebar, navbar, breadcrumbs, customizer, command palette, toasts and the footer.Yes
auth/login, /register, /forgot-passwordAn editorial split screen: a brand panel and the form column with language, theme and legal links.No. Signed-in users are sent away.
blank/maintenance, /coming-soonOnly the page and the toasts.No, when the page sets public: true
landing-page/ and /landing/*Only the page and the toasts. The landing renders its own navigation.No

The default layout

layouts/default.vue
<template>
  <v-app>
    <AppCustomizer />
    <AppSidebar />
    <AppNavBar />
    <v-main>
      <v-container class="px-7" :fluid="isFluid">
        <AppBreadcrumbs />
        <v-defaults-provider :defaults="densityDefaults">
          <slot />
        </v-defaults-provider>
        <AppCopyright />
      </v-container>
    </v-main>
    <AppCommandPalette />
    <AppToast />
  </v-app>
</template>
  • AppToast and AppCommandPalette render once here. Pages call useToast() and useCommandPalette(); they never render their own snackbar or dialog.
  • The container follows the customizer. It is boxed by default and full width when the user picks Full in the customizer, or when the page sets fluid: true.
  • Table density comes from the user. v-defaults-provider applies the density appearance option to every VDataTable on the page.

Page options

definePageMeta accepts these fields in the template:

Option
Type
Effect
layoutstringThe layout to use. Defaults to default.
breadcrumbi18n keys, strings or a functionThe breadcrumb trail. Its last item also becomes the <title> of the page.
hideBreadcrumbsbooleanHides the breadcrumb row. Full-height apps use it.
fluidbooleanDrops the boxed container. Only the full-height apps set it.
publicbooleanLets guests open the page. The auth and landing-page layouts are public already.
permissionPermissionRequires a permission such as orders.view. Without it the user gets a 403.
pages/e-commerce/orders/index.vue
<script setup lang="ts">
definePageMeta({
  breadcrumb: ['nav.ecommerceSection', 'nav.orders'],
  permission: 'orders.view',
})
</script>

The breadcrumb items are translated when they are i18n keys, so the same array works in every language. A detail page can pass a function that receives the route and returns the record name.

Page structure

Pages inside the default layout share one structure, so every screen feels part of the same product:

  1. BasePageHeader with the title, the description and the primary action in #actions. It renders the h1; do not wrap it in v-row.
  2. An optional BaseAlert when something needs attention (late orders, overdue invoices).
  3. The content: a BaseDataTable, a grid of cards or a v-row with a lg="8" main column and a lg="4" side column.

Empty views use BaseEmptyState and outcomes after a submit use BaseResultState.

Wide content in a boxed page

Do not make a page fluid to fit a wide table. Give BaseDataTable responsive-columns so secondary columns hide while the table is narrower than a width you choose:

vue
<BaseDataTable :headers="headers" :items="orders" :responsive-columns="{ channel: 900, city: 760 }" />
© 2026 melsami UI.
Developer documentation for melsami UI.