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

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