{#
A textarea input element

Available variables:
  - attributes (object) - A Drupal attributes object for the input element.  Of note, it may include the following:
    - disabled (boolean)
    - placeholder (string)
  - value (renderable) - Optional elements to render within the textarea tag.
  - hasErrors (boolean) - whether this textarea has server-side errors.  If true, this will invoke error styling for this
      field on page load.
#}
{% set attributes = union_attributes(attributes|default([])) %}
{% set _classes = ['cu-input', 'cu-input--textarea'] %}

{% if hasErrors %}
  {% set _classes = _classes|merge(['is-invalid']) %}
{% endif %}

<textarea{{ attributes.addClass(_classes) }}>{{ value }}</textarea>
