Bestandteile
Icon, Badge, Meta-Text und Aktionen (Chevron wandert dann nach links); deaktivierter Zustand.
Layout
One collapsible section: title (wraps up to two lines), optional icon, badge slot and meta text; with an actions slot the chevron moves to the left and the actions sit on the right of the header.
Icon, Badge, Meta-Text und Aktionen (Chevron wandert dann nach links); deaktivierter Zustand.
Kopfzeile 52 px, Inhalt rückt bündig unter den Titel.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
title | '' | – | Header text. |
meta | '' | – | Secondary text right of the title, e.g. "4 Optionen". |
icon | '' | – | Leading Carbon icon. |
open | False | – | Expanded on load; the attribute reflects the state. |
disabled | False | – | Header cannot be toggled. |
style | '' | Own style; empty follows the surrounding tc_accordion (flush alone). | |
{% slot badge %} | – | Slot | Benannter Inhaltsbereich. |
{% slot actions %} | – | Slot | Benannter Inhaltsbereich. |
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.