lenards/elm-ui-patternfly/4.0.1

NOTE: the latest version is 4.0.2

PF6.Grid

PF6 Grid layout

12-column grid system. Each item specifies how many columns it spans.

See: https://www.patternfly.org/layouts/grid

Definition

type Grid msg

Opaque Grid type

type GridItem msg

Opaque GridItem type

Constructors

grid : List (GridItem msg) -> Grid msg

Construct a Grid with a list of GridItems

gridItem : Element msg -> GridItem msg

Construct a GridItem wrapping content. Defaults to span 12 (full width).

Modifiers

withGutter : Grid msg -> Grid msg

Add medium gutter spacing between items

withSpan : Int -> GridItem msg -> GridItem msg

Set column span (1-12) for a grid item

Rendering

toMarkup : Theme -> Grid msg -> Element msg

Render the Grid as an Element msg