Ü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

Range Slider

Bereich

Unter- und Obergrenze auf einer Spur, mit Skala und deaktiviert.

0255075100 0255075100
Code<div class="tc-stack" style="--tc-gap: 28px; max-width: 360px"> {% tc_range_slider# label="Zeitraum" name_min="days_min" name_max="days_max" value_min=20 value_max=60 unit=" Tage" scale=True %} {% tc_range_slider# label="Preis" name_min="price_min" name_max="price_max" min=0 max=500 step=10 value_min=100 value_max=350 unit=" €" %} {% tc_range_slider# label="Zeitraum" name_min="d_min" name_max="d_max" value_min=20 value_max=60 unit=" Tage" scale=True disabled=True %} </div>

API

OptionStandardWerteBeschreibung
name_min''–Field name of the lower bound.
name_max''–Field name of the upper bound.
value_min20–Lower bound.
value_max60–Upper bound.
label''–Visible label text.
requiredFalse–Mark as required: native required attribute plus a red asterisk.
optionalFalse–Show the "optional" marker after the label (ignored when required).
label_icon''–Explanation shown as a help icon with tooltip after the label.
hide_labelFalse–Keep the label for assistive technology only.
help''–Hint below the control (Figma: Hint / Help Text).
error''–Error message or list of messages (e.g. Django field.errors); sets the error state, aria-invalid and aria-describedby. Replaces the hint while shown.
state''Validation state without an error message: success or warning colour the border and the hint.
min0–Minimum value.
max100–Maximum value.
step1–Step size.
unit''–Unit appended to the shown value, e.g. " %" or " Tage".
scaleFalse–Ticks and labels below the track: True for five even marks or "0|25|50|75|100".
show_valueTrue–Show the current value at the end of the label row.
disabledFalse–Disable the slider.

Verwendung

{% load components tomcom_theme %} {% tc_range_slider name_min="…" name_max="…" %}…{% endtc_range_slider %} {% tc_range_slider# %} {# 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.