Zustände
Mehrzeiliges Textfeld mit Hinweis, Zähler, Fehler, deaktiviert und schreibgeschützt.
Formulare
Multi-line text field (Figma: Textarea) with the same states as Input. counter=True shows the character count next to the hint; resize="auto" grows the field with its content.
Mehrzeiliges Textfeld mit Hinweis, Zähler, Fehler, deaktiviert und schreibgeschützt.
resize="auto" passt die Höhe an den Inhalt an.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Visible label text. |
required | False | – | Mark as required: native required attribute plus a red asterisk. |
optional | False | – | Show the "optional" marker after the label (ignored when required). |
label_icon | '' | – | Explanation shown as a help icon with tooltip after the label. |
hide_label | False | – | Keep the label for assistive technology only. |
help | '' | – | Hint below the control (Figma: Hint / Help Text). |
error | '' | – | Error message or list of messages (e.g. Django field.errors); sets the error state, aria-invalid and aria-describedby. Replaces the hint while shown. |
state | '' | Validation state without an error message: success or warning colour the border and the hint. | |
name | '' | – | Form field name (Django html_name). |
value | 'None' | – | Current value; dates and numbers are converted to their ISO/text form. |
disabled | False | – | Disable the control. |
readonly | False | – | Read-only: value stays selectable and is submitted. |
placeholder | '' | – | Placeholder text (never a replacement for the label). |
mono | False | – | Monospaced value for technical values (hostnames, IPs, keys). |
counter | False | – | Show a character counter (Figma: Count); combine with maxlength. |
rows | 4 | – | Visible text lines. |
resize | 'vertical' | Manual vertical resize, none, or auto-grow with content. |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.