StackView

View Source

Lay out children in either a column or row. Wraps flexbox styles in a simple API inspired by Apple's UIStackView.

Select a cell above to edit or add a new one

Cell 1
Cell 2
Cell 3
Cell 1
Cell 2
Cell 3

Setting Axis, Alignment and Distribution

The standard way of defining these flex settings is via props, but they can appear as:

  • StackView.BASELINE
  • StackView.CENTER
  • StackView.END
  • StackView.FILL
  • StackView.HORIZONTAL
  • StackView.SPACE_BETWEEN
  • StackView.SPACE_EVENLY
  • StackView.START
  • StackView.STRETCH
  • StackView.VERTICAL