bigardone / elm-css-placeholders / Placeholders.Square

Renders a square placeholder.

Definition


type Square

Represents the configuration for a square placeholder

default : Square

Returns a default configuration for a square placeholder.

withBackgroundColor : Css.Color -> Square -> Square

Adds backgroundColor to a Square.

withSize : Css.Px -> Square -> Square

Adds size to a Square.

View

view : Square -> Html.Styled.Html msg

Renders a square placeholder using the given configuration.