Zustände
Suchfeld leer mit Tastenkürzel, gefüllt mit Löschen-Button, deaktiviert und in Größe SM.
/
Formulare
Search field (Figma: Search) with leading icon, keyboard hint and clear button. With get/post the request fires 300 ms after typing stops (hx-trigger "input changed delay:300ms"); the shortcut key focuses the field from anywhere on the page, Escape clears it (event tc-clear).
Suchfeld leer mit Tastenkürzel, gefüllt mit Löschen-Button, deaktiviert und in Größe SM.
die Anfrage startet 300 ms nach der letzten Eingabe und ersetzt die Ergebnisliste.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
name | 'q' | – | Query parameter name. |
value | 'None' | – | Current query. |
label | '' | – | Accessible name; visible only with show_label (defaults to the placeholder). |
show_label | False | – | Render the label above the field. |
placeholder | '' | – | Placeholder, e.g. "Hostname, IP oder Notiz suchen". |
shortcut | '/' | – | Key that focuses the field (shown as keyboard hint); empty disables it. |
disabled | False | – | Disable the field. |
size | 'md' | Height: sm 28, md 36, lg 44 px (match the buttons in the same row). | |
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. |
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.