Standard, Kennzahl und Kopf/Fuß
die Grundtypen der Karte
3 Zertifikate laufen in den nächsten 30 Tagen ab. Erneuerung erfolgt automatisch über ACME.
1.284
+12 %ggü. gestern · 7 Fehler
Läuft am 12.12.2026 ab. Die automatische Verlängerung ist aktiv.
Layout
Container for related content: 16 px padding, radius/md, 1 px border/subtle. Types: default (title, menu, body), stat (metric + trend), link (whole card clickable via a stretched link on the title), link_actions (clickable with own footer buttons), header_footer (divided header/footer), image (top, start or end; start/end stack when narrow) and panel (platform panel: section header with meta and header actions, divider, flush content slot, optionally collapsible: collapsed property, toggle(), tc-show / tc-hide events). Slots: default, actions (header right), footer, media (custom image).
die Grundtypen der Karte
3 Zertifikate laufen in den nächsten 30 Tagen ab. Erneuerung erfolgt automatisch über ACME.
1.284
+12 %ggü. gestern · 7 Fehler
Läuft am 12.12.2026 ab. Die automatische Verlängerung ist aktiv.
ganze Karte als Link oder klickbar mit eigenen Aktionen
Bild oben, am Anfang oder am Ende; schmal gestapelt
Einstieg, Rollen und häufige Fragen für neue Mitarbeitende.
Relaunch der Unternehmensseite, 3 offene Aufgaben.
Relaunch der Unternehmensseite, 3 offene Aufgaben.
Plattform-Panel mit Abschnittskopf, Kopfaktionen und Inhalt ohne Innenabstand
<tc-card> direkt im Markup (Titel als heading); Panel mit toggle() und tc-show / tc-hide.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
type | 'default' | Card layout. | |
title | '' | – | Heading text. |
level | 3 | Heading level of the title (<h2>-<h6>). | |
body | '' | – | Short secondary text below the title. |
meta | '' | – | Mono meta line (link card) or header meta (panel), e.g. "7:45 h gebucht". |
href | '' | – | Target of link and link_actions cards. |
link_label | '' | – | Visible link cue of a link card; defaults to "Open". |
image | '' | – | Image URL (image type); without it a placeholder is shown. |
image_alt | '' | – | Alternative text; empty marks the image decorative. |
image_position | 'top' | Image above, before or after the content. | |
stat_label | '' | – | Metric label (stat type). |
value | '' | – | Metric value (stat type), e.g. "1.284". |
unit | '' | – | Optional unit after the value. |
trend | '' | – | Trend value, e.g. "+12 %" (stat type). |
trend_direction | 'up' | Arrow of the trend. | |
trend_tone | 'neutral' | Meaning of the trend (good = success), not its sign. | |
trend_hint | '' | – | Trend context, e.g. "ggü. Vortag". |
dividers | True | – | Header/footer dividers (header_footer type). |
collapsible | False | – | Panel: add a collapse toggle to the header. |
collapsed | False | – | Panel: start collapsed. |
flush | 'None' | – | Content without padding (default: true for panels, false otherwise). |
{% slot actions %} | – | Slot | Benannter Inhaltsbereich. |
{% slot footer %} | – | Slot | Benannter Inhaltsbereich. |
{% slot media %} | – | 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.