PrimeBrickPrimeBrick
  • Docs
  • Contact
  • MIT License
  • Documentation
  • MCP Server
  • API Catalog
  • Services
  • Libraries
PrimeBrickPrimeBrick

© 2026 PrimeBrick. MIT License. v3.8.0

github
Backend
Frontend
    OverviewGetting startedUI stackApp shell & sidebarAuthentication & sessionsSystem settingsUI componentsUI patterns
    Components
      Entity list tableComboSelectDynamicIconColorSelectorAvatarPreviewEventCardCommandPaletteAppShellAppSidebarAppTopbarAppPageLayoutAppPageScaffoldAppPageBreadcrumbAppServerBannerBrowserClientInfoLangSelectThemeToggleSidebarHealthBadgeSidebarModuleSwitcherSidebarOrgSwitcherSidebarProfileMenuSidebarVersionBadgeButton (async)FormPageLayoutFormLabelWithHelpFormLabelWithPriorityHelpPasswordChecklistChoiceboxDateWheelPickerEventToastLoadingBarMetadataLoadingJsonTableViewerDialogBorderedRFCErrorDialogLoginFormPasskeyButtonPasskeyEnrollmentAuthMethodsPromptDialogSessionExpiredDialogInputTooltipForm
    API Reference
Microservices
powered by Zudoku
Components

AppPageLayout

src/lib/components/AppPageLayout.svelte

Purpose

The standard page wrapper for authenticated routes. It renders an AppPageScaffold whose header snippet places AppPageBreadcrumb (ancestor segments) on the left, an optional title snippet below it, and an optional actions snippet (toolbar buttons) on the right. The page body is passed as children into the scaffold's bordered content region.

Origin

Custom — Primebrick-written. Composes AppPageScaffold and AppPageBreadcrumb.

Usage

Default with breadcrumb and title

Code
<script lang="ts"> import AppPageLayout from '$lib/components/AppPageLayout.svelte'; import type { AppBreadcrumbSegment } from '$lib/breadcrumb/types'; const segments: AppBreadcrumbSegment[] = [ { label: 'System', href: '/system' }, { label: 'Settings', href: '/system/settings' } ]; </script> <AppPageLayout {segments} title="Profile"> <p>Page body…</p> </AppPageLayout>

With action buttons

Code
<AppPageLayout {segments}> {#snippet title()}<h1>Users</h1>{/snippet} {#snippet actions()} <Button onclick={openCreate}>New user</Button> {/snippet} <UserTable /> </AppPageLayout>

Breadcrumb-only (no title)

Code
<AppPageLayout {segments}> <Dashboard /> </AppPageLayout>

Props

Full prop table: see API reference — apppagelayout.

Key props: segments: AppBreadcrumbSegment[] (ancestor breadcrumb segments), title?: Snippet, actions?: Snippet, children?: Snippet.

Next steps

  • Component catalog
  • UI stack
  • API reference
Last modified on July 26, 2026
AppTopbarAppPageScaffold
On this page
  • Purpose
  • Origin
  • Usage
    • Default with breadcrumb and title
    • With action buttons
    • Breadcrumb-only (no title)
  • Props
  • Next steps