TextArea

An input field that let the user enter a multi-line text


Provides a wrapper for Phoenix.HTML.Form's textarea/3 function.

All options passed via opts will be sent to textarea/3 . Explicitly defined properties like value and class can be set directly and will override anything in opts .



<TextArea
  rows="4"
  opts={{ placeholder: "4 lines of textarea" }}
/>

# Public API

Name Description Type Values Default
opts Options list.

:keyword []
class Class or classes to apply to the input.

:css_class
value Value to pre-populated the input.

:string
field An identifier for the input.

:string
form An identifier for the form.

:form
rows Specifies the visible number of lines in a text area.

:string
cols Specifies the visible width of a text area.

:string