Zustände
auswählbare Filterchips mit Zähler, gewählt invertiert mit Haken
Formulare
Quick filter above lists and tables: a form-associated checkbox (or radio) styled as a square toggle, so it submits with Django forms (FormData) and fires change / tc-change (HTMX triggers on change). Selected chips are inverted with a check mark. Removable chips show an active filter with a remove button instead (tc-remove, like tc_tag).
auswählbare Filterchips mit Zähler, gewählt invertiert mit Haken
gesetzte Filter als Chip mit Entfernen-Schaltfläche
Chips sind Checkboxen und laden die Liste bei Änderung neu
<tc-chip> als formularfähiges Element; selected-Property, toggle() und tc-change.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Chip text when the default slot is empty. |
count | 'None' | – | Optional result count shown in mono. |
name | '' | – | Form field name. |
value | 'on' | – | Submitted value. |
selected | False | – | Checked state. |
type | 'checkbox' | Checkbox (multi select) or radio (single select). | |
disabled | False | – | Disable the chip. |
removable | False | – | Show as active filter with a remove button. |
remove_label | '' | – | Accessible name of the remove button. |
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.