Theme: ← Übersicht Tokens

Combobox (Select mit Suche)

1.14.0 (opt-in, Client-Vertrag): native Optionen (template data-combo-native-options) mit select data-descriptions bringen je Option data-description als zweite Zeile mit; data-combo-value an der Wurzel waehlt beim Mounten vor (ohne change). Einzelauswahl mit Suchfilter und Options-Panel: Tastatur-N

Components v1.16.2 Formulare WebsiteAppDesktop component.combobox

Nutzt: ui.icon ui.avatar ui.swatch

Beispiele

Einzelauswahl mit Suche und Beschreibungen (Pfeiltasten + Enter)
Labels mit eigener Farbe: Hex-Wert als Farbkachel, Tag-Farbe als Punkt (1.15.0)

Eigenschaften

PropTypDefaultBuilder-Label
labelstring""Label
placeholderstring"Auswählen …"Platzhalter
searchPlaceholderstring"Suchen …"Such-Platzhalter
options *array—Optionen
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)
optionsPlaceholderstring""CMS-Optionsmarker
namestring""Formularname
disabledbooleanfalseDeaktiviert
requiredbooleanfalsePflichtauswahl
valuestring""Ausgewählter Wert
clearOnSelectbooleanfalseNach Auswahl leeren
remoteUrlstring""Fernsuche (Adresse)
remoteMinLengthnumber1Fernsuche ab Zeichen
relativeTostring""Endzeit relativ zu Feld
sharedOptionsstring""Gemeinsame Optionsliste
sharedOwnnumber0Eigene Optionen am Ende
relativeStepsarray[15,30,45,60,90,120,180,240,300,360,480]Dauern (Minuten)
relativeDefaultnumber0Standard-Dauer (Minuten)
showDescriptionbooleanfalseBeschreibung im Feld zeigen

* Pflicht-Prop

Events & Slots

Events: ⚡ change — im Surface per on: {<event>: {action, params}} verdrahtbar.

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--combobox-action-primaryvar(--color-action-primary)
--combobox-border-defaultvar(--color-border-default)
--combobox-elevation-overlayvar(--elevation-overlay)
--combobox-focus-ring-colorvar(--focus-ring-color)
--combobox-focus-ring-offsetvar(--focus-ring-offset)
--combobox-focus-ring-widthvar(--focus-ring-width)
--combobox-form-backgroundvar(--form-background)
--combobox-form-bordervar(--form-border)
--combobox-form-border-hovervar(--form-border-hover)
--combobox-form-placeholdervar(--form-placeholder)
--combobox-radius-controlvar(--radius-control)
--combobox-radius-overlayvar(--combobox-panel-radius, var(--combobox-radius-control))
--combobox-radius-smvar(--shape-small, var(--radius-sm))
--combobox-surface-overlayvar(--color-surface-overlay)
--combobox-surface-sunkenvar(--color-surface-sunken)
--combobox-text-defaultvar(--color-text-default)
--combobox-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

border.hairlinecolor.action.primarycolor.border.defaultcolor.chart.1color.chart.2color.chart.3color.chart.4color.chart.5color.chart.6color.chart.7color.chart.8color.status.dangercolor.surface.overlaycolor.surface.sunkencolor.text.defaultcolor.text.mutedcontrol.heightcontrol.pad-xduration.fasteasing.standardelevation.overlayfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultform.backgroundform.borderform.border-hoverform.errorform.placeholderlayer.dropdownleading.tightradius.controlradius.fullradius.smsize.05size.1size.10size.2size.3size.32size.4size.5size.6size.8state.disabled-opacitytag.amber.tonetag.blue.tonetag.gray.tonetag.green.tonetag.orange.tonetag.pink.tonetag.red.tonetag.teal.tonetag.violet.tonetext.2xstext.mdtext.smtext.xsweight.mediumweight.semibold

LLM-Notizen

component.combobox

Einzelauswahl mit Suchfilter. Ergänzung zu ui.select (kurze Listen) und component.multi-select (Mehrfachauswahl).

Wann nutzen

  • Listen ab ~8 Optionen oder wenn Optionen Beschreibungen brauchen.
  • Modell-/Team-/Kunden-Wahl in App-Fenstern.

Wichtige Props

  • options = [{label, description?, icon?, active?}] — genau ein active = Vorauswahl.
  • label, placeholder, searchPlaceholder.

Beispiel-Node


{"definition": "component.combobox", "props": {"label": "Modell", "options": [{"label": "Opus 4.8", "description": "stark, langsamer", "active": true}, {"label": "Haiku", "description": "schnell"}]}}

Hinweise

  • Tastatur: Pfeile navigieren, Enter wählt, Escape schließt. Emittiert change mit {value}.