lenards/elm-ui-patternfly/1.2.0

NOTE: the latest version is 4.0.2

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 : Int -> Card msg -> Card msg

Appeals padding to the "body" content

withBodyPaddingXY : Int -> Int -> Card msg -> Card msg

Appeals padding to the "body" content

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

Appeals padding to the "body" content

withBodySpacing : Int -> Card msg -> Card msg

Appeals spacing to the "body" content

withBodySpacingXY : Int -> Int -> Card msg -> Card msg

Appeals spacing to the "body" content

Appeals spacing to the "body" content

Rendering stateless element

toMarkup : Card msg -> Element msg

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