Suche mit Vorschau — component.search
Kompakte Suche mit Verlauf, Filterleiste und optionaler Detailvorschau. Der Konsument liefert autorisierte Treffer und übernimmt die Navigation. 1.6.0: Vorschlag als grauer Text im Feld (Ereignis invisible:search-suggest {query, completion, hint}; Tab oder Pfeil rechts übernimmt). 1.7: feste Texte m
Beispiele
Suche öffnen: kompakte Karten und eigene Vorschaufläche
Ohne Vorschau
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title | string | "Suche" |
subtitle | string | "Alles an einem Ort" |
placeholder | string | "Datensätze, Apps und Bereiche suchen ..." |
openerLabel | string | "Suche öffnen" |
opener | boolean | true |
expanded | boolean | true |
shortcut | boolean | true |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
placement | string: bottom | top | "bottom" |
filterLabel | string | "" |
scopeLabel | string | "" |
inline | boolean | false |
inputName | string | "query" |
inputLabel | string | "Suche" |
Events & Slots
Events: command, query, select, preview, mode, expand, state
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--search-width | calc(var(--size-32) * 12) |
--search-home-width | calc(var(--size-32) * 8) |
--search-height | calc(var(--size-32) * 7) |
--search-home-height | calc(var(--size-32) * 5.5) |
--search-edge | var(--size-4) |
--search-bottom | calc(var(--dock-reserve, var(--size-20)) + var(--size-2)) |
--search-pad | var(--size-5) |
--search-surface | var(--color-surface-default) |
--search-chrome | var(--material-glass-background) |
--search-border | var(--color-border-subtle) |
--search-text | var(--color-text-default) |
--search-muted | var(--color-text-muted) |
--search-input-hint | color-mix(in srgb, var(--color-text-muted) 56%, var(--search-surface)) |
--search-selection | var(--color-accent-soft, var(--color-status-success-surface)) |
--search-accent | var(--color-action-primary) |
--search-accent-text | var(--color-text-accent) |
--search-radius | var(--shape-card) |
--search-shadow | var(--elevation-modal) |
--search-dock-preferred-width | 40rem |
--search-control-height | var(--navigation-width-collapsed) |
--search-input-height | var(--size-12) |
--search-header-pad-y | var(--size-3) |
--search-header-pad-x | var(--size-4) |
--search-row-height | calc(var(--search-input-height) + var(--search-header-pad-y) * 2) |
--search-rail-width | var(--navigation-width-collapsed) |
--search-rail-ink | var(--palette-neutral-0) |
--search-preview-icon-filter | brightness(0) invert(1) |
--window-card-background | var(--window-frame-content-background) |
--navigation-width-collapsed | var(--search-rail-width) |
--sidebar-content-inset | min(var(--navigation-padding), max(0px, calc((var(--search-rail-width) - var(--navigation-row-compact)) / 2))) |
--sidebar-icon-material | var(--search-rail-ink) |
--sidebar-ink | var(--search-rail-ink) |
--sidebar-selection-soft | color-mix(in srgb, var(--palette-neutral-100) 28%, var(--palette-neutral-0)) |
--sidebar-selection-ink | var(--color-action-primary) |
--dock-base-size-1 | var(--size-1) |
--dock-base-size-2 | var(--size-2) |
--dock-base-size-3 | var(--size-3) |
--dock-base-size-4 | var(--size-4) |
--dock-base-size-5 | var(--size-5) |
--dock-base-size-6 | var(--size-6) |
--dock-base-size-8 | var(--size-8) |
--dock-base-size-10 | var(--size-10) |
--dock-base-size-12 | var(--size-12) |
--dock-base-size-16 | var(--size-16) |
--search-category-height | calc((var(--size-10) + var(--size-1)) * var(--desktop-shell-widget-scale, 1)) |
--taskbar-icon-material | linear-gradient(to right, var(--color-status-warning-surface), var(--color-status-warning)) |
--icon-color | currentColor |
Genutzte Design-Tokens
border.hairline color.accent color.accent-soft color.action.primary color.border.default color.border.focus color.border.strong color.border.subtle color.status.success-surface color.status.warning color.status.warning-surface color.surface.default color.surface.page color.text.accent color.text.default color.text.muted duration.fast easing.standard elevation.modal elevation.raised focus.ring-color focus.ring-width font.family.default glass.backdrop layer.modal navigation.hover navigation.icon navigation.padding navigation.row-compact navigation.width-collapsed palette.neutral.0 palette.neutral.100 size.05 size.1 size.10 size.12 size.16 size.2 size.20 size.3 size.32 size.4 size.5 size.6 size.8 size.9 text.md text.xs weight.medium