uncover-co/elm-widgets-alpha/1.0.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
}

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 ( String, a )
, toString : a -> String
, onInput : Maybe a -> msg
}
-> Html msg
List (SelectAttributes -> SelectAttributes)
-> { value : Maybe a
, options : List ( String, a )
, optionGroups : List ( String, List ( String, a ) )
, toString : a -> String
, onInput : Maybe a -> msg
}
-> Html msg
type alias SelectAttributes =
{ placeholder : Maybe String
, disabled : Bool
}