bigardone/elm-css-placeholders/1.0.0

NOTE: the latest version is 2.0.1

Placeholders.Triangle

Renders a triangle placeholder.

Definition

type alias Triangle =
{ backgroundColor : Color
, corner : Corner
, size : Px
}

Represents the configuration for a triangle placeholder

type Corner
= Top
| Right
| Bottom
| Left

Represents a triangle corner.

default : Triangle

Returns a default configuration for a triangle placeholder.

withBottomCorner : Triangle -> Triangle

Sets the bottom corner to a given triangle.

withLeftCorner : Triangle -> Triangle

Sets the left corner to a given triangle.

withRightCorner : Triangle -> Triangle

Sets the right corner to a given triangle.

View

view : Triangle -> Html msg

Renders a triangle placeholder using the given configuration.