Invisible Docs
GalerieTokens

Combobox (Select mit Suche) — component.combobox

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

Componentv1.16.2Formulareweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Einzelauswahl mit Suche und Beschreibungen (Pfeiltasten + Enter)

Labels mit eigener Farbe: Hex-Wert als Farbkachel, Tag-Farbe als Punkt (1.15.0)

Eigenschaften

PropTypDefault
labelstring""
placeholderstring"Auswählen …"
searchPlaceholderstring"Suchen …"
options *array—
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""
optionsPlaceholderstring""
namestring""
disabledbooleanfalse
requiredbooleanfalse
valuestring""
clearOnSelectbooleanfalse
remoteUrlstring""
remoteMinLengthnumber1
relativeTostring""
sharedOptionsstring""
sharedOwnnumber0
relativeStepsarray[15,30,45,60,90,120,180,240,300,360,480]
relativeDefaultnumber0
showDescriptionbooleanfalse

Events & Slots

Events: change

Stellschrauben (Komponenten-Tokens)

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.hairline color.action.primary color.border.default color.chart.1 color.chart.2 color.chart.3 color.chart.4 color.chart.5 color.chart.6 color.chart.7 color.chart.8 color.status.danger color.surface.overlay color.surface.sunken color.text.default color.text.muted control.height control.pad-x duration.fast easing.standard elevation.overlay focus.ring-color focus.ring-offset focus.ring-width font.family.default form.background form.border form.border-hover form.error form.placeholder layer.dropdown leading.tight radius.control radius.full radius.sm size.05 size.1 size.10 size.2 size.3 size.32 size.4 size.5 size.6 size.8 state.disabled-opacity tag.amber.tone tag.blue.tone tag.gray.tone tag.green.tone tag.orange.tone tag.pink.tone tag.red.tone tag.teal.tone tag.violet.tone text.2xs text.md text.sm text.xs weight.medium weight.semibold