arowM/elm-neat-layout/2.0.0

NOTE: the latest version is 4.0.5

Neat.Layout

Alignment functions.

Core

type alias Layout msg =
Layout msg

Rows and Columns

row : List (View p msg) -> View p msg

Re-exposing of Neat.Alignment.Row.row.

rowWith : Row -> List (View p msg) -> View p msg

Re-exposing of Neat.Alignment.Row.rowWith.

An alias for rowWith Neat.Alignment.Row.default.

column : List (View p msg) -> View p msg

Re-exposing of Neat.Alignment.Column.column.

columnWith : Column -> List (View p msg) -> View p msg

Re-exposing of Neat.Alignment.Column.columnWith.

An alias for columnWith Neat.Alignment.Column.default.

Fill items in Rows and Columns

fill : Layout msg

Expand the item in row/column.

Shorthands for fillBy 1.

fillBy : Int -> Layout msg

Specifies how much of the remaining space in the row/column should be assigned to the item.

noShrink : Layout msg

Prohibit to shrink the item in row/column.

Shorthands for fillBy 0.

shrinkBy : Int -> Layout msg

If the size of all flex items in row/column is larger than the container, items shrink to fit according to shrinkBy.

basis : String -> Layout msg

basis