Übersicht FarbenTypografieAbstände & RasterIcons ButtonButton GroupIcon ButtonLink CheckboxCheckbox GroupChipChip GroupComboboxDate PickerFieldField LabelFieldsFile UploadFormForm SectionInputInput GroupOTP InputPasswordRadioRadio GroupRange SliderReset ButtonSave ButtonSearchSegmented ControlSelectSliderSwitchTextareaTime Picker AvatarAvatar GroupBadgeChartCode BlockCopy ValueData TableInline StatKey ValueList GroupList RowsMeta ItemQR CodeStatStat StripTableTag AlertEmpty StateGuideLive StatusMessagesProgressSkeletonToast DialogDrawerDropdownMenuMenu ItemPopoverTooltip BreadcrumbContent NavigationDate NavigationPaginationSidebarStepperTabsTheme SwitchTopbar AccordionAccordion ItemApp ShellCardDividerFooterPage HeaderSection HeaderSplit Panel DashboardListeFormularDetailansichtEinstellungenMehrschritt-AssistentLeerer StartLoginFehlerseite IconsMusterAdmin

Card

Standard, Kennzahl und Kopf/Fuß

die Grundtypen der Karte

Code<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start"> {% tc_card title="Zertifikate" body="3 Zertifikate laufen in den nächsten 30 Tagen ab. Erneuerung erfolgt automatisch über ACME." %} {% slot "actions" %}{% tc_icon_button# icon="overflow-menu--vertical" label="Aktionen" size="sm" %}{% endslot %} {% endtc_card %} {% tc_card# type="stat" stat_label="Konvertierungen heute" value="1.284" trend="+12 %" trend_tone="success" trend_hint="ggü. gestern · 7 Fehler" %} {% tc_card type="header_footer" title="Zertifikat example.com" body="Läuft am 12.12.2026 ab. Die automatische Verlängerung ist aktiv." %} {% slot "actions" %}{% tc_icon_button# icon="overflow-menu--vertical" label="Aktionen" size="sm" %}{% endslot %} {% slot "footer" %}{% tc_button# label="Details" variant="link" size="sm" %}{% tc_button# label="Verlängern" size="sm" %}{% endslot %} {% endtc_card %} </div>

Bildkarten

Bild oben, am Anfang oder am Ende; schmal gestapelt

Code<div class="tc-stack"> <div style="max-width: 320px"> {% tc_card type="image" title="Plattform-Handbuch" body="Einstieg, Rollen und häufige Fragen für neue Mitarbeitende." %} {% slot "footer" %}{% tc_button# label="Öffnen" variant="outlined" size="sm" %}{% endslot %} {% endtc_card %} </div> <div style="max-width: 560px" class="tc-stack"> {% tc_card type="image" image_position="start" title="Kunde A · Projekt Webseite" body="Relaunch der Unternehmensseite, 3 offene Aufgaben." %} {% slot "footer" %}{% tc_button# label="Zum Projekt" variant="outlined" size="sm" %}{% endslot %} {% endtc_card %} {% tc_card type="image" image_position="end" title="Kunde A · Projekt Webseite" body="Relaunch der Unternehmensseite, 3 offene Aufgaben." %} {% slot "footer" %}{% tc_button# label="Zum Projekt" variant="outlined" size="sm" %}{% endslot %} {% endtc_card %} </div> </div>

Panel

Plattform-Panel mit Abschnittskopf, Kopfaktionen und Inhalt ohne Innenabstand

Code<div style="max-width: 560px" class="tc-stack"> {% tc_card type="panel" title="Nachweise" meta="7:45 h gebucht" collapsible %} {% slot "actions" %}{% tc_icon_button# icon="filter" label="Filtern" size="sm" %}{% tc_button# label="Tätigkeit buchen" icon="add" size="sm" %}{% endslot %} {% tc_list_rows %} {% tc_list_row type="time" duration="1:30" title="Formularvalidierung überarbeiten" description="Fehlermeldungen am Feld anzeigen" meta="Projekt Webseite · Entwicklung" %}{% tc_tag# label="WEB-142" %}{% endtc_list_row %} {% tc_list_row type="time" duration="0:45" title="Abstimmung Designsystem" meta="Projekt Webseite · Konzeption" %}{% endtc_list_row %} {% endtc_list_rows %} {% endtc_card %} {% tc_card type="panel" title="Letzte Änderungen" meta="3 heute" flush=False %} {% tc_key_value inset %}{% tc_key_value_row# key="Erstellt von" value="Max Mustermann · 12.11.2026" %}{% tc_key_value_row# key="Zone" value="example.com" mono %}{% endtc_key_value %} {% endtc_card %} </div>

HTML und JS-API

<tc-card> direkt im Markup (Titel als heading); Panel mit toggle() und tc-show / tc-hide.

toggle()
Code<div class="tc-stack" style="max-width: 560px"> <tc-card type="link" heading="Plattform C" href="#" body="Kurzbeschreibung der Plattform in einem Satz." meta="app-c.example.com"></tc-card> <tc-card id="raw-panel" type="panel" heading="Hinweise" meta="2 neu" collapsible> <tc-list-group flush> <tc-list-item heading="Wartung am Samstag"></tc-list-item> <tc-list-item heading="Neue Version verfügbar"></tc-list-item> </tc-list-group> </tc-card> <div class="tc-cluster"> <tc-button id="raw-panel-toggle" variant="outlined" size="sm">toggle()</tc-button> <span id="raw-panel-log" class="tc-text-body-sm tc-text-secondary" aria-live="polite"></span> </div> </div> <script> (function () { var panel = document.getElementById('raw-panel'); var log = document.getElementById('raw-panel-log'); document.getElementById('raw-panel-toggle').addEventListener('click', function () { panel.toggle(); }); ['tc-show', 'tc-hide'].forEach(function (name) { panel.addEventListener(name, function () { log.textContent = name; }); }); })(); </script>

API

OptionStandardWerteBeschreibung
type'default'Card layout.
title''–Heading text.
level3Heading 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".
dividersTrue–Header/footer dividers (header_footer type).
collapsibleFalse–Panel: add a collapse toggle to the header.
collapsedFalse–Panel: start collapsed.
flush'None'–Content without padding (default: true for panels, false otherwise).
{% slot actions %}–SlotBenannter Inhaltsbereich.
{% slot footer %}–SlotBenannter Inhaltsbereich.
{% slot media %}–SlotBenannter Inhaltsbereich.

Verwendung

{% load components tomcom_theme %} {% tc_card type="…" title="…" %}…{% endtc_card %} {% tc_card# %} {# inline form without content #}

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.