Ü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

Key Value

Zeilen

Detailansicht mit Schlüsselspalte, Text- und Mono-Werten

Code<div style="max-width: 560px"> {% tc_key_value %} {% tc_key_value_row# key="Erstellt von" value="Max Mustermann · 12.11.2026" %} {% tc_key_value_row# key="Typ" value="CNAME" mono %} {% tc_key_value_row# key="Ziel" value="app.example.com" mono %} {% tc_key_value_row key="Status" %}{% tc_badge# label="Aktiv" tone="success" %}{% endtc_key_value_row %} {% tc_key_value_row key="Adresse" %}{% tc_copy_value# value="10.0.4.17" %}{% endtc_key_value_row %} {% endtc_key_value %} </div>

In einer Karte

ohne Linie unter der letzten Zeile, damit keine Doppelkante entsteht

Code<div style="max-width: 560px"> {% tc_card type="panel" title="VPN-Peer" flush=False %} {% tc_key_value inset %} {% tc_key_value_row# key="Name" value="Notebook Beispiel" %} {% tc_key_value_row# key="Endpunkt" value="vpn.example.com:51820" mono %} {% tc_key_value_row# key="Erlaubte IPs" value="10.0.0.0/16" mono %} {% endtc_key_value %} {% endtc_card %} </div>

HTML

<tc-key-value> mit <tc-key-value-row>-Kindern direkt im Markup.

Aktiv
Code<div style="max-width: 560px"> <tc-key-value> <tc-key-value-row key="Zone" value="example.com" mono></tc-key-value-row> <tc-key-value-row key="Status"><tc-badge tone="success">Aktiv</tc-badge></tc-key-value-row> </tc-key-value> </div>

API

OptionStandardWerteBeschreibung
items'None'–List of (key, value) pairs or dicts: key, value, mono.
monoFalse–Mono values for all rows (technical values).
insetFalse–Drop the last divider (inside a bordered card or panel).

Key Value Row

OptionStandardWerteBeschreibung
key''–Key text.
value''–Value text when the slot is empty.
monoFalse–Mono value.

Verwendung

{% load components tomcom_theme %} {% tc_key_value items="…" mono="…" %}…{% endtc_key_value %} {% tc_key_value# %} {# 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.