@@ -0,0 +1,61 @@
1+module Main exposing (main)
4+import Element exposing (..)
5+import Element.Background as Background
6+import Element.Border as Border
7+import Element.Font as Font
8+import Element.Input as Input
9+import Html exposing (Html)
23+ = ContentChanged String
26+update : Msg -> Model -> Model
29+ ContentChanged str ->
30+ { model | content = str }
33+view : Model -> Html Msg
35+ Element.layout [ Font.color (rgb 1 0 0) ]
39+main : Program () Model Msg
42+ { init = initialModel
51+ , height (shrink |> maximum 300)
56+ { onChange = ContentChanged
57+ , text = model.content
58+ , placeholder = Just (Input.placeholder [] (text "Write your novel, dummy!"))
59+ , label = Input.labelAbove [] (text "My Input")