Töne nebeneinander
Neutral, Info, Success, Warning und Danger – statisch gerendert und live per TC.toast.
Feedback
Short confirmation in the shared toast region (bottom right; bottom, full width on phones). Each tone has its own tinted surface, 1 px border and icon. Neutral, info and success toasts hide after 5 s (paused on hover/focus, optional progress line); warnings and errors stay until closed; loading toasts show a spinner and neither hide nor close until loading ends. At most three are visible at once. Usually shown via TC.toast(), tc_messages or an HX-Trigger "tc:toast" header; the tag renders one static toast, e.g. for an out-of-band swap into the toast region.
Neutral, Info, Success, Warning und Danger – statisch gerendert und live per TC.toast.
fette Titelzeile, eine Aktion als Link („Rückgängig“), Restzeit als Linie.
Import abgebrochen
Wartung
TC.toast mit Aktion, Fortschrittslinie und Ladezustand; höchstens drei Toasts gleichzeitig.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
tone | 'neutral' | Colour, icon and urgency: neutral, info, success, warning, danger. | |
message | '' | – | Text when the default slot is empty. |
title | '' | – | Optional bold line above the message. |
timeout | 'None' | – | Auto-hide delay in ms inside the toast region; default 5000, 0 for warning/danger. |
dismissible | 'None' | – | Close button; default only for toasts that do not hide themselves. |
close_label | '' | – | Accessible name of the close button (default "Close"). |
progress | False | – | Show a line counting down the auto-hide delay. |
loading | False | – | Spinner instead of the icon; no auto-hide or close until loading is removed. |
{% slot action %} | – | 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.