NoRedInk/noredink-ui/5.11.0

NOTE: this package is not compatible with Elm 0.19.1

Nri.Ui.TextArea.V2

Upgrading from V2

  • The Model's autoResize field is now height : HeightBehavior, which can be either Fixed or AutoResize Height. Height is either DefaultHeight or SingleLine and controls the minimum height of the textarea.

  • The view now returns Html.Styled rather than plain Html.

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
styles : StylesWithAssets Never CssClasses msg (Assets r)