:lock: Secure and accessible dark theme static website generator for Hugo https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hackcss-textarea.html 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!-- {{/*
  2. HTML attributes: "id", "name", "class", "autocomplete", "autofocus", "cols", "disabled", "form", "maxlength", "minlength", "name", "placeholder", "readonly", "required", "rows", "spellcheck", "wrap", "tabindex"
  3. Custom attributes: "text"
  4. Possible autocompletes: [none], "on", "off"
  5. Possible wraps: [none], "hard", "soft", "off"
  6. Possible spellchecks: [none], "true", "default", "false"
  7. Read-only with prefilled text:
  8. {{< hackcss-textarea readonly="true" text="Only this and nothing more." >}}
  9. With spellcheck disabled:
  10. {{< hackcss-textarea spellcheck="false" >}}
  11. With 16 columns and hard wrapping enabled:
  12. {{< hackcss-textarea cols="16" wrap="hard" >}}
  13. Inside disabled form group With error label and placeholder:
  14. {{< hackcss-formgroup hastextarea="true" disabled="true" state="error" >}}
  15. {{< hackcss-label for="message" text="Message:" />}}
  16. {{< hackcss-textarea id="message" placeholder="Guestbook offline…" rows="10" >}}
  17. {{< /hackcss-formgroup >}}
  18. */}} -->
  19. {{ $id := .Get "id" | default nil }}
  20. {{ $name := .Get "name" | default nil }}
  21. {{ $class := .Get "class" | default nil }}
  22. {{ $autocomplete := .Get "autocomplete" | default nil }}
  23. {{ $autofocus := .Get "autofocus" | default nil }}
  24. {{ $cols := .Get "cols" | default nil }}
  25. {{ $disabled := .Get "disabled" | default nil }}
  26. {{ $form := .Get "form" | default nil }}
  27. {{ $maxlength := .Get "maxlength" | default nil }}
  28. {{ $minlength := .Get "minlength" | default nil }}
  29. {{ $name := .Get "name" | default nil }}
  30. {{ $placeholder := .Get "placeholder" | default nil }}
  31. {{ $readonly := .Get "readonly" | default nil }}
  32. {{ $required := .Get "required" | default nil }}
  33. {{ $rows := .Get "rows" | default nil }}
  34. {{ $spellcheck := .Get "spellcheck" | default nil }}
  35. {{ $wrap := .Get "wrap" | default nil }}
  36. {{ $tabindex := .Get "tabindex" | default nil }}
  37. {{ $body := .Get "text" | default nil }}
  38. {{ 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 "name" $name "placeholder" $placeholder "readonly" $readonly "required" $required "rows" $rows "spellcheck" $spellcheck "wrap" $wrap "tabindex" $tabindex)) }}