This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Flex.Extra

alignedContent : ( Flex.Align, Flex.JustifyContent ) -> List (Node msg) -> Node msg

alignedContent is a way to align content inside a container.

module Flex.Extra
    exposing
        ( alignedContent
        )

{-|
@docs alignedContent
-}

import BodyBuilder as Builder exposing (Node)
import BodyBuilder.Attributes as Attributes
import Style
import Block
import Flex


{-|
alignedContent is a way to align content inside a container.
-}
alignedContent : ( Flex.Align, Flex.JustifyContent ) -> List (Node msg) -> Node msg
alignedContent alignment content =
    Builder.flex
        [ Attributes.style
            [ Style.flexContainerProperties
                [ Flex.alignXY alignment
                ]
            , Style.block
                [ Block.fullHeight
                ]
            ]
        ]
        [ Builder.flexItem [] content
        ]