{{ $id := .Get "id" | default nil }}
{{ $name := .Get "name" | default nil }}
{{ $class := .Get "class" | default nil }}
{{ $autocomplete := .Get "autocomplete" | default nil }}
{{ $autofocus := .Get "autofocus" | default nil }}
{{ $cols := .Get "cols" | default nil }}
{{ $disabled := .Get "disabled" | default nil }}
{{ $form := .Get "form" | default nil }}
{{ $maxlength := .Get "maxlength" | default nil }}
{{ $minlength := .Get "minlength" | default nil }}
{{ $placeholder := .Get "placeholder" | default nil }}
{{ $readonly := .Get "readonly" | default nil }}
{{ $required := .Get "required" | default nil }}
{{ $rows := .Get "rows" | default nil }}
{{ $spellcheck := .Get "spellcheck" | default nil }}
{{ $wrap := .Get "wrap" | default nil }}
{{ $tabindex := .Get "tabindex" | default nil }}
{{ $body := .Get "text" | default nil }}
{{ partial "components/textarea.html" (dict "body" $body "attrs" (dict "id" $id "name" $name "class" $class "autocomplete" $autocomplete "autofocus" $autofocus "cols" $cols "disabled" $disabled "form" $form "maxlength" $maxlength "minlength" $minlength "placeholder" $placeholder "readonly" $readonly "required" $required "rows" $rows "spellcheck" $spellcheck "wrap" $wrap "tabindex" $tabindex)) }}
{{ if eq "false" $autocomplete }}
  <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for textarea. Did you mean \"off\" instead of %q?" $autocomplete)) }}</p>
{{ end }}
{{ if eq "false" $wrap }}
  <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid wrap value for textarea. Did you mean \"off\" instead of %q?" $wrap)) }}</p>
{{ end }}
