uncover-co/elm-widgets-alpha/2.1.0

NOTE: the latest version is 25.0.0

ElmWidgets

Setup

globalStyles : Html msg

Setup all styles needed for ElmWidgets.

Buttons

Primary Button

List (PrimaryButtonAttributes -> PrimaryButtonAttributes)
-> { label : Html msg
, onClick : msg
}
-> Html msg
{ color : String
, background : String
, shadow : String
, disabled : Bool
, fill : Bool
}

Status Buttons

List (StatusButtonAttributes -> StatusButtonAttributes)
-> { label : Html msg
, onClick : msg
}
-> Html msg
List (StatusButtonAttributes -> StatusButtonAttributes)
-> { label : Html msg
, onClick : msg
}
-> Html msg
{ disabled : Bool
, fill : Bool
}

Outlined Button

List (OutlinedButtonAttributes -> OutlinedButtonAttributes)
-> { label : Html msg
, onClick : msg
}
-> Html msg
{ color : String
, shadow : String
, disabled : Bool
, fill : Bool
}

Invisible Button

List (InvisibleButtonAttributes -> InvisibleButtonAttributes)
-> { label : Html msg
, onClick : msg
}
-> Html msg
{ color : String
, background : String
, disabled : Bool
, fill : Bool
}

Forms

List (FieldAttributes -> FieldAttributes)
-> { label : Html msg
, input : Html msg
}
-> Html msg

Input

List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
List (InputAttributes msg -> InputAttributes msg)
-> { onInput : String -> msg
, value : String
}
-> Html msg
type alias InputAttributes msg =
{ disabled : Bool
, required : Bool
, pattern : Maybe String
, placeholder : Maybe String
, htmlAttrs : List (Attribute msg)
}

Checkbox

List (CheckboxAttributes -> CheckboxAttributes)
-> { value : Bool
, onInput : Bool -> msg
}
-> Html msg
type alias CheckboxAttributes =
{ color : String
, disabled : Bool
}

Radio

List (RadioButtonsAttributes -> RadioButtonsAttributes)
-> { name : String
, value : Maybe a
, options : List a
, toValue : a -> String
, toLabel : a -> String
, onInput : a -> msg
}
-> Html msg
{ color : String
, disabled : Bool
, vertical : Bool
}

Select

List (SelectAttributes -> SelectAttributes)
-> { value : Maybe a
, options : List a
, toValue : a -> String
, toLabel : a -> String
, onInput : Maybe a -> msg
}
-> Html msg
List (SelectAttributes -> SelectAttributes)
-> { value : Maybe a
, options : List a
, optionGroups : List ( String, List a )
, toValue : a -> String
, toLabel : a -> String
, onInput : Maybe a -> msg
}
-> Html msg
type alias SelectAttributes =
{ placeholder : Maybe String
, disabled : Bool
}

Range

List (RangeAttributes -> RangeAttributes)
-> { min : Float
, max : Float
, step : Float
, value : Float
, onInput : Float -> msg
}
-> Html msg