Skip to content

Layout Components

Layout components control how screen components are arranged visually.

You can find them in the LAYOUT section of the Components toolbar section of the Components toolbar.

ComponentPurpose
LayoutGroups child components and arranges them vertically, horizontally, or in another configured layout direction.
Grid LayoutArranges child components into a grid structure.
CardGroups related content inside a card-style container.
TabsOrganizes related content into separate tab panels.
SpacerAdds visual space between components.
DividerAdds a visual separator between sections of content.

Use the Layout component when you need to group components and control how they are positioned.

The Layout component supports multiple layout types that define how child components are arranged:

Layout TypePurpose
vertical in one columnStacks components vertically in a single column (default form layout).
horizontal in one rowPlaces components side by side in a single row.
grid with fixed columnsArranges components in a grid with a fixed number of columns.
grid with fixed rowsArranges components in a grid with a fixed number of rows.
normal <div> blockUses standard block layout behavior without additional structure.
vertical (bottom-up)Stacks components vertically in reverse order (bottom to top).
horizontal (right-to-left)Places components horizontally from right to left.
inheritInherits layout behavior from the parent container.

Common examples include:

  • placing form fields below introductory text
  • arranging buttons next to each other
  • wrapping a component so it no longer stretches across the full available width
  • grouping related fields before applying layout or logic behavior

Tip

Use vertical in one column for most form-based screens. Switch to horizontal or grid layouts when you need tighter alignment or multi-column structures.

The Card component is provided by the Angular Material library. Use it to group related fields or controls in a self-contained visual container.

For example, a purchase request item can be displayed inside a card so the description, quantity, budget amount, currency, and remove button are clearly grouped as one item.

Use a Grid Layout when related fields should appear in columns instead of one long vertical stack.

A common pattern is to use a two-column grid for form fields such as description, quantity, budget amount, and currency.