Stack

Layout elements vertically, add some space between elements.

A thin abstraction over a flex: by default, it only adds a gap and makes the flex vertical. The container spans the whole line.

  • gap: defaults to 16px.
  • justify: defaults to browser's default: flex-start (elements sit at the top),
  • align: defaults to browser's default: stretch (stretch elements along the cross axis, spreading the whole width)

Like any div with the default display:block, the stack itself occupies the full width.

earlymorning logo

© 2025 - All rights reserved

Stack

Layout elements vertically, add some space between elements.

A thin abstraction over a flex: by default, it only adds a gap and makes the flex vertical. The container spans the whole line.

  • gap: defaults to 16px.
  • justify: defaults to browser's default: flex-start (elements sit at the top),
  • align: defaults to browser's default: stretch (stretch elements along the cross axis, spreading the whole width)

Like any div with the default display:block, the stack itself occupies the full width.