atzzCokeK / elm-inputtext-with-count / InputTextWithCount

This is a module useful when you want to make a inputText has the limited number of characters (not words).

NewConfig

newConfig : { classPrefix : String, maxLength : Basics.Int } -> Config

With this function, you can make a Config. And then you can put it in the following view function.

config = newConfig {classPrefix = "message", maxLength = 400  }

InputText

view : Config -> String -> (String -> msg) -> List (Html.Attribute msg) -> List (Html msg) -> Html msg

Add a msg to receive a text which is input. And you can add attrs and elements if needed.