The stack package

@ds-workshop/stack v1.0.0

This is what the stack is meant to do and why we have it

The Stack component helps us with UI layouts

You can use it for vertical spacing:

Or you can use it for horizontal spacing:

Inline

A Stack can also be set to inline-grid:

Gap

You can tell the Stack how large the gap should be and choose from the below numbers:

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
Edit this page