Gruppen und Zustände
aktive Seite, Zähler, einklappbare Gruppe und deaktivierter Eintrag. Kürzel „[“ klappt die Sidebar ein.
Navigation
Left navigation with items or grouped items and a collapse toggle (shortcut "["). The footer slot pins items to the bottom above the toggle (e.g. "Einstellungen"). Inside an app shell the collapsed state is remembered per browser and tablets start collapsed. Element API: collapsed property, toggle()/collapse()/expand(), tc-toggle event.
aktive Seite, Zähler, einklappbare Gruppe und deaktivierter Eintrag. Kürzel „[“ klappt die Sidebar ein.
<tc-sidebar> mit <tc-nav-group>/<tc-nav-item>; toggle() und die Ereignisse tc-toggle von Sidebar und Gruppe.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Accessible name of the navigation; defaults to "Main navigation". |
collapsible | True | – | Show the collapse toggle in the footer. |
{% slot footer %} | – | 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.