Skip to content

Elm Flex Layout provides a layout API for using Flexbox CSS

License

Notifications You must be signed in to change notification settings

tptshepo/elm-flex-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm Flex-Layout

Elm Flex Layout provides a layout API for using Flexbox CSS.

Getting started

Installing the package

$ elm install tptshepo/elm-flex-layout

Usage

Demo

https://tptshepo.github.io/elm-flex-layout

API

fxLayout

image

import Flex
...
...
...
view =
  div ([] ++ fxLayout Flex.row Flex.spaceAround Flex.center)
      [ div [] [text "1"]
      , div [] [text "2"]
      , div [] [text "3"]
      , div [] [text "4"]
      , div [] [text "5"]
      ]
...
...

Direction options

row
column

Horizontal and vertical alignment options

start
center
end
spaceBetween
spaceAround
spaceEvenly
stretch

About

Elm Flex Layout provides a layout API for using Flexbox CSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published