Ü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

Link

Typen

Inline-Links im Fließtext und Standalone-Links mit Pfeil

Die Zugangsdaten finden Sie in der oder im .

Code<div class="tc-stack"> <p class="tc-text-body">Die Zugangsdaten finden Sie in der {% tc_link# href="https://example.com/docs" label="Dokumentation" %} oder im {% tc_link# href="#" label="Benutzerkonto" %}.</p> <div class="tc-cluster" style="--tc-gap: 24px"> {% tc_link# type="standalone" href="#" label="Alle Zertifikate anzeigen" %} {% tc_link# type="standalone" href="https://example.com" label="Externe Hilfe" icon="launch" external %} </div> </div>

Größen

SM für Tabellen und Meta, MD als Standard, LG für Einstiege

Code<div class="tc-stack" style="--tc-gap: 12px"> <div class="tc-cluster" style="--tc-gap: 24px"> {% tc_link# size="sm" href="#" label="Details" %} {% tc_link# size="md" href="#" label="Details" %} {% tc_link# size="lg" href="#" label="Details" %} </div> <div class="tc-cluster" style="--tc-gap: 24px"> {% tc_link# type="standalone" size="sm" href="#" label="Öffnen" %} {% tc_link# type="standalone" size="md" href="#" label="Öffnen" %} {% tc_link# type="standalone" size="lg" href="#" label="Zugang beantragen" %} </div> </div>

Zustände

aktuelle Seite und deaktivierte Links

Code<div class="tc-cluster" style="--tc-gap: 24px"> {% tc_link# href="#" label="Übersicht" current %} {% tc_link# href="#" label="Nicht verfügbar" disabled %} {% tc_link# type="standalone" href="#" label="Archiv (gesperrt)" disabled %} {% tc_link# type="standalone" href="#" label="Zurück zur Liste" icon="none" icon_left="arrow--left" %} </div>

HTML

<tc-link> direkt im Markup, ohne Template-Tag; Inline, Standalone und deaktiviert.

Weitere Hinweise stehen im Handbuch.

Alle Zugänge Statusseite Archiv
Code<p class="tc-text-body">Weitere Hinweise stehen im <tc-link href="#">Handbuch</tc-link>.</p> <div class="tc-cluster" style="--tc-gap: 24px"> <tc-link href="#" type="standalone">Alle Zugänge</tc-link> <tc-link href="https://example.com" type="standalone" icon="launch" external>Statusseite</tc-link> <tc-link href="#" disabled>Archiv</tc-link> </div>

API

OptionStandardWerteBeschreibung
href'#'–Target URL.
label''–Link text when the default slot is empty.
type'inline'Inline (underlined, in text) or standalone (with arrow).
size'md'Text size: sm 13, md 14, lg 16 px.
icon''–Trailing Carbon icon; standalone links default to arrow--right. Use "none" to hide.
icon_left''–Leading Carbon icon.
externalFalse–Open in a new tab (adds rel=noopener and a screen-reader hint).
disabledFalse–Render a non-navigating, dimmed link (aria-disabled).
currentFalse–Mark as the current page (aria-current="page").

Verwendung

{% load components tomcom_theme %} {% tc_link href="…" label="…" %}…{% endtc_link %} {% tc_link# %} {# 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.