Skip to main content

What it is

Stack is the main layout component in Flowboard. You use it to arrange other components vertically, horizontally, or as layered overlays on the canvas.

What it’s best for

Use Stack when you need one component to hold and organize the rest of the screen.

When to use it

  • Build a hero screen with headline, image, and button
  • Create a card layout with consistent spacing
  • Layer text over media for a more editorial look
  • Keep groups of related components aligned

When not to use it

  • Do not use it for a single gap. Use Spacer instead.
  • Do not use it when you only need one precise overlay item. Add Positioned inside an existing stack instead.

How to add it in the dashboard

  1. Open the screen in the dashboard.
  2. In the Components panel, add Stack.
  3. Select the stack on the canvas.
  4. In the properties panel, choose the layout direction you want.
  5. Add child components inside the stack and adjust spacing, alignment, and appearance.

Key parameters

ParameterWhat it changesWhen to adjust it
AxisSets whether items flow vertically, horizontally, or as overlaysChange it when the screen structure changes
AlignmentControls how items line up across the stackUse it when content looks off-center or uneven
DistributionControls how items spread across available spaceUse it when you need tighter grouping or more breathing room
Child spacingAdds space between child componentsUse it to create rhythm without adding extra spacers
Width and height modeDecides whether the stack fills space, fits content, or uses a fixed sizeChange it when a section should stretch or hug content
MarginAdds space outside the stackUse it to separate the whole block from surrounding content
FillAdds a solid color, gradient, or image backgroundUse it to create cards, sections, or visual emphasis
Border and shadowAdds structure and depthUse it for cards, panels, or highlighted content
Corner radiusSoftens the shape of the containerUse it when you want a more polished card style

Example use cases

  • A welcome screen with a logo, headline, short body copy, and one primary button
  • A pricing highlight card with a title, benefits list, and upgrade action
  • A feature education screen with an image background and text layered over it

Best practices

  • Start with Stack for the main screen structure, then add content inside it.
  • Use spacing and alignment first before reaching for decorative effects.
  • Keep one clear content group per stack when possible.
  • If the screen has one main message, let the stack reinforce that hierarchy.

Common mistakes

  • Adding too many nested stacks for a simple layout
  • Using child spacing and spacers together without a clear reason
  • Mixing too many visual treatments in the same stack