bigardone / elm-css-placeholders / Placeholders.Rectangle

Renders a rectangle placeholder.

Definition


type Rectangle

Represents the configuration for a rectangle placeholder

default : Rectangle

Returns a default configuration for a rectangle placeholder.

withBackgroundColor : Css.Color -> Rectangle -> Rectangle

Adds backgroundColor to a Rectangle.

withBorderRadius : Css.Px -> Rectangle -> Rectangle

Adds borderRadius to a Rectangle.

withHeight : Css.Px -> Rectangle -> Rectangle

Adds height to a Rectangle.

withWidth : Css.Pct -> Rectangle -> Rectangle

Adds width to a Rectangle.

View

view : Rectangle -> Html.Styled.Html msg

Renders a rectangle placeholder using the given configuration.