Layout Components

MainLayout

The main application layout container with slots for header, body, footer, and dialogs. The body section is scrollable while header and footer remain fixed.

Structure

App Header

This is the main content area. It scrolls independently while the header and footer stay fixed.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.

Usage

MainLayout Props

PropTypeDefaultDescription
gapBooleantrueAdd margin between header and body

MainLayout Slots

SlotDescription
dialogsContainer for dialogs (rendered outside layout flow)
headerFixed header area (typically TopBar)
bodyScrollable main content area
footerFixed footer area (typically BottomBar)

TopBar

A responsive header bar with three slot areas (left, center, right) for navigation and actions.

Basic TopBar

With Center Grow

Use center-grow to make the center section expand to fill available space.

My App
Login

Usage

TopBar Props

PropTypeDefaultDescription
leftGrowBooleanfalseMake left slot expand to fill space
centerGrowBooleanfalseMake center slot expand to fill space
rightGrowBooleanfalseMake right slot expand to fill space
mobileCollapseBooleantrueStack slots vertically on mobile screens

TopBar Slots

SlotDescription
leftLeft section content (logo, breadcrumb, etc.)
centerCenter section content (search, title, etc.)
rightRight section content (actions, user menu, etc.)

BottomBar

A simple footer bar component with default Cloudron branding or custom content.

Default BottomBar

© 2024   Cloudron       Forum

Custom Content

© 2026 My Application   |   Privacy Policy   |   Terms of Service

Usage

BottomBar Slots

SlotDescription
defaultFooter content (defaults to Cloudron branding)