nathanjohnson320 / elm-ui-components / ElmUIC.Arrow

A directional arrow


type alias Arrow =
{ direction : Direction
, size : ElmUIC.Theme.Size 
}

Base model for an arrow


type Direction
    = Up
    | Down
    | Left
    | Right

The possible directions you want the arrow to point

defaultArrow : Arrow

Instantiates the default properties of an arrow

{ defaultArrow | direction = Right }

arrow : ElmUIC.Theme.Theme -> Arrow -> List (Html.Styled.Attribute msg) -> List (Html.Styled.Html msg) -> Html.Styled.Html msg

A styled arrow

arrow defaultTheme defaultArrow [] []