bigardone / elm-css-placeholders / Placeholders.Block

Renders a text block placeholder.

Definition


type Block

Represents the configuration for a text block placeholder. It has the following attributes:

default : Block

Returns a default configuration for a block placeholder.

withItems : List Basics.Int -> Block -> Block

Adds items to a Block.

withHeight : Css.Px -> Block -> Block

Adds height to a Block.

withBackgroundColor : Css.Color -> Block -> Block

Adds backgroundColor to a Block.

init : Block -> ( Block, Platform.Cmd.Cmd Msg )

Inits a block placeholder shuffling its items.

Update


type Msg

Block msg.

update : Msg -> Block -> ( Block, Platform.Cmd.Cmd Msg )

Block update.

View

view : Block -> Html.Styled.Html msg

Renders a block placeholder using the given configuration.