Ü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

Divider

Typen

horizontal, vertikal, mit Beschriftung und als Formularabschnitt

BearbeitenKopierenLöschen
Code<div class="tc-stack" style="--tc-gap: 20px; max-width: 360px"> {% tc_divider# %} {% tc_divider# tone="default" %} {% tc_divider# label="oder" %} {% tc_divider# type="section" label="Zuordnung" level=3 %} <div class="tc-cluster" style="height: 32px; --tc-gap: 12px"> <span class="tc-text-body">Bearbeiten</span>{% tc_divider# type="vertical" %}<span class="tc-text-body">Kopieren</span>{% tc_divider# type="vertical" tone="default" %}<span class="tc-text-body">Löschen</span> </div> </div>

Anmeldung

„oder“ trennt Single Sign-on von der Anmeldung mit Passwort

Code<div class="tc-stack" style="--tc-gap: 16px; max-width: 360px"> {% tc_button# label="Mit Unternehmenskonto anmelden" variant="outlined" icon="enterprise" block %} {% tc_divider# label="oder" %} {% tc_button# label="Mit E-Mail und Passwort" block %} </div>

HTML

<tc-divider> direkt im Markup, mit Beschriftung und als Abschnitt.

Zeit
Code<div class="tc-stack" style="--tc-gap: 20px; max-width: 360px"> <tc-divider></tc-divider> <tc-divider label="oder"></tc-divider> <tc-divider type="section" level="3">Zeit</tc-divider> </div>

API

OptionStandardWerteBeschreibung
type'horizontal'Horizontal, vertical, with label or form section.
tone'subtle'Line colour: subtle (border/subtle) or default.
label''–Text for the label and section types; a label switches horizontal to "label".
level0Section label as heading level 2-6 (0 = plain text).

Verwendung

{% load components tomcom_theme %} {% tc_divider type="…" tone="…" %}…{% endtc_divider %} {% tc_divider# %} {# 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.