Horizontal
über breiten Formularen (max. 5 Schritte); erledigte Schritte mit Häkchen sind Links zurück.
Navigation
Multi-step flows (wizards). Horizontal above wide forms (max. 5 steps), vertical in narrow columns, drawers or when steps contain content; compact for mobile footers. The line shows progress; numbers in Mono; done steps can link back. Children: tc_step.
über breiten Formularen (max. 5 Schritte); erledigte Schritte mit Häkchen sind Links zurück.
in schmalen Spalten und Drawern; der aktuelle Schritt kann Inhalt aufnehmen.
mobiler Fuß mit Punkten, „Schritt 2 von 4“ und Zurück/Weiter.
Warnung und Fehler färben Linie, Nummer und Hinweis; Status-Icons aus Carbon.
<tc-stepper current> setzt Zustände der <tc-step>-Kinder; next()/previous() und tc-change.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
steps | 'None' | – | List of (label, hint, href) tuples or dicts with label, hint, href, state, icon. |
current | 'None' | – | Current step (1-based); earlier steps are done, later ones upcoming. |
orientation | 'horizontal' | Horizontal, vertical or compact. | |
numbers | True | – | Show step numbers ("01"). |
label | '' | – | Accessible name (default "Progress"). |
prev_href | '' | – | Compact: link of the back button (or use the prev slot). |
next_href | '' | – | Compact: link of the next button (or use the next slot). |
prev_label | '' | – | Compact: back button label (default "Back"). |
next_label | '' | – | Compact: next button label (default "Next"). |
status_format | '' | – | Compact status, e.g. "Schritt %(current)s von %(total)s". |
{% slot prev %} | – | Slot | Benannter Inhaltsbereich. |
{% slot next %} | – | 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.