NoRedInk/noredink-ui/7.12.0

NOTE: the latest version is 35.9.3

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

Modules