lenards / elm-ui-patternfly / PF4.Card

A component to save as a media card or general container

Definition


type Card msg

Opaque Card element that can produce msg messages

Constructor function(s)

card : List (Element msg) -> Card msg

Constructs a card element with list Element msg as the "body" content

Configuration functions

withTitle : String -> Card msg -> Card msg

Configures the Card to have title text above the "body" content

withFooter : Element msg -> Card msg -> Card msg

Configures the Card to have a footer element with the context passed

Padding & Spacing functions

withBodyPadding : Basics.Int -> Card msg -> Card msg

Appeals padding to the "body" content

withBodyPaddingXY : Basics.Int -> Basics.Int -> Card msg -> Card msg

Appeals padding to the "body" content

withBodyPaddingEach : { top : Basics.Int, right : Basics.Int, bottom : Basics.Int, left : Basics.Int } -> Card msg -> Card msg

Appeals padding to the "body" content

withBodySpacing : Basics.Int -> Card msg -> Card msg

Appeals spacing to the "body" content

withBodySpacingXY : Basics.Int -> Basics.Int -> Card msg -> Card msg

Appeals spacing to the "body" content

withBodySpaceEvenly : Card msg -> Card msg

Appeals spacing to the "body" content

Rendering stateless element

toMarkup : Card msg -> Element msg

Given the custom type representation, renders as an Element msg.