A simple way to build responsive grids.
Learn more about columnar grids in the official docs.
myGrid : Html msg
myGrid =
columns myColumnsModifiers
[]
[ column myColumnModifiers
[]
[ text "First Column"
]
, column myColumnModifiers
[]
[ text "Second Column"
]
, column myColumnModifiers
[]
[ text "Third Column"
]
]Default column attributes.
myColumnsModifiers : ColumnsModifiers
myColumnsModifiers
= { multiline = False
, gap = Gap3
, display = TabletAndBeyond
, centered = False
}
myColumnsModifiers == columnsModifiersMake a columnar grid! The widths of all your columns should be no greater than twelve.
The widths field requires a Maybe Width for each device size.
Nothing will create a narrow column for that device range.
Default offsets and widths for an individiual column.
The offset defaults to Auto. Each device defaults to Just Auto.
Default offsets and widths for an individiual column.
The offset defaults to Auto. Each device defaults to Nothing.
A column element that is meant to be placed in columns.
myColumn : Html msg
myColumn =
column myColumnModifiers
[]
[ h1 [] [ text "Lorem" ]
, h2 [] [ text "ipsum" ]
, h3 [] [ text "dolor" ]
, h4 [] [ text "sit" ]
, h5 [] [ text "amet" ]
]