Momen Docs
Go to Momen
  • Get Started
    • Introduction
    • Quick Start
    • Software Development Process
    • Editor Overview
  • Changelog
    • Latest Product Update
  • Build UI
    • Pages
    • Components
    • Canvas
    • Layout
    • Component - Display
    • Component - Input
    • Component - View
    • Component - List
    • Component - Tab View
    • Component - Select View
    • Component - Conditional View
    • Component - Others
    • Component - Map
    • Custom Component
  • Data
    • Overview
    • Data Model and Database
    • API
    • Variable
    • Parameter
    • Formula and Conditions
  • Actions
    • Overview
    • Request
    • Navigation
    • Actionflow
      • Custom Code
      • Database Trigger
    • AI
      • AI Data Model
      • AI Point
      • Vector Data Storage and Sorting
    • User Actions
    • Component Management
    • App and Page Management
    • Toast Notifications & Modal
    • Payment
    • SSO
    • Share
    • Location
    • File Management
    • QR Code
    • Clipboard
    • Conditional
    • Loop
  • Release and Growth
    • Publish Application
    • Upgrade Project
    • Multiple Clients
    • Permission
    • Log Service
    • SEO
    • Hosting Files
  • My Account and Community
    • My Wallet
    • Promoting Momen
    • Code Component
    • Collaboration
  • Debugging
    • How to Debug in Momen
    • Request Error Reference
  • Tutorial
    • How to Build an AI Needs Analysis Project?
    • How to Set Up Payment with Stripe Plugin?
    • How to Embed an Iframe Component into Your Momen Project?
    • How to Build Your Login Page?
    • How to Convert Momen App to Native Mobile App?
    • How to Build a CMS (MVP Version) in Hours?
    • How to Set a Countdown Timer When Sending a Verification Code
  • Template
    • AI Mental Health Assistant
    • Angry Dietitian
    • AI Help Center
    • AI Knowledge Base
    • SaaS Corporate Site
    • Blog
    • AI Feedback Tool
    • Feedback Tool, a Nod to Canny
    • Portfolio
    • Online Courses, a Nod to Udemy
    • Mobile Auto Repair AI Scheduler
Powered by GitBook
On this page
  • Layout
  • Direction
  • Distribution and Alignment
  • Wrapping
  • Gap
  • Overflow
  • Position
  • Type
  • Layer
  1. Build UI

Layout

Learn how to config layout and position in Momen

PreviousCanvasNextComponent - Display

Last updated 1 day ago

Layout

Pages and container components come with default layout properties. You can adjust the layout settings to arrange components with a "relative" position type according to the specified rules, achieving your desired layout effect.

Direction

The extension direction of the layout.

Horizontal

Add, remove, and reorder objects along the X-axis.

Vertical

Add, remove, and reorder objects along the Y-axis.

Distribution and Alignment

You can freely adjust the distribution of child components within a page/container component and align them with reference to the parent.

Stack:

Space Between: The spacing between components is equal, but the first and last components are flush with the edges of the container.

Space Evenly: The spacing between components is equal, and the margins at both ends of the container are also equal.

Space Around: In space-around distribution, each component has equal spacing on both sides, making them appear "evenly surrounded." However, because the components at both ends only share spacing on one side with other components, the gaps between the ends and the container edges are smaller than the spacing between components.

Wrapping

When the content width exceeds the available space of the container, the content will adjust to the next line for arrangement.

Gap

The spacing settings between child components within a page or container component.

Overflow

  1. Scroll: When content overflows, a scrollbar appears on the parent, allowing you to scroll to view the overflowed content.

  2. Visible: When content overflows, the overflowed part is visible on the parent.

  3. Hidden: When content overflows, the overflowed part is hidden on the parent.

Position

Type

  1. Relative: Components are arranged in an orderly manner according to the layout of their parent.

  2. Absolute: Components are displayed at a fixed position based on two directions (top-left, top-right, bottom-left, bottom-right) of their parent.

  3. Fixed: Components are displayed at a fixed position based on two directions (top-left, top-right, bottom-left, bottom-right) of the browser viewport, and remain in a fixed position even when the page scrolls.

Layer

  • The default layer of all components is "auto," meaning all components are on the same layer.

  • You can manually change the layer of a component (numerically), with higher values indicating a higher layer. Components on higher layers will cover those on lower layers.

  • Components on the same layer are presented in the order they are added, with later additions covering earlier ones.