package mosaic

  1. Overview
  2. Docs

Module Mosaic_mlx.JustifySource

Distribution of space between and around content items (align-content, justify-content).

type t = Toffee.Style.Align_content.t =
  1. | Start
    (*

    Pack items toward the start of the axis.

    *)
  2. | End
    (*

    Pack items toward the end of the axis.

    *)
  3. | Flex_start
    (*

    Pack items toward the flex-relative start.

    *)
  4. | Flex_end
    (*

    Pack items toward the flex-relative end.

    *)
  5. | Center
    (*

    Center items around the middle of the axis.

    *)
  6. | Stretch
    (*

    Stretch items to fill the container.

    *)
  7. | Space_between
    (*

    Distribute items evenly, flush with edges.

    *)
  8. | Space_evenly
    (*

    Distribute items evenly with equal edge spacing.

    *)
  9. | Space_around
    (*

    Distribute items evenly with half-size edge gaps.

    *)