NoRedInk/noredink-ui/5.5.3

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.TextArea.V3

Upgrading to V3

  • Do nothing! (This just uses new elm-css styles)

The Nri styleguide-specified textarea with overlapping label

view : Model msg -> Html msg
writing : Model msg -> Html msg

Used for Writing Cycles

contentCreation : Model msg -> Html msg

Used for Content Creation

type Height
= DefaultHeight
| SingleLine

For specifying the actual height.

= Fixed
| AutoResize Height

Control whether to auto-expand the height.

type alias Model msg =
{ value : String
, autofocus : Bool
, onInput : String -> msg
, isInError : Bool
, height : HeightBehavior
, placeholder : String
, label : String
, showLabel : Bool
}
generateId : String -> String