Invisible Docs
GalerieTokens

Befehlsmenü (Cmd+K) — component.command-menu

Befehlsmenü mit Tastatursteuerung. Die kompatible Variante search delegiert an component.search; neue Suchanwendungen verwenden die eigenständige Suchkomponente. 1.5: feste Texte mehrsprachig (invisible_i18n). 1.6: opt-in catchAll = Auffang-Eintrag bei jeder Eingabe (Label mit %s = Suchtext), comman

Componentv1.8.0Navigationweb.applicationdesktop.shellbuilder.preview

Beispiele

Button klicken oder Strg/Cmd+K — tippen filtert, Pfeile + Enter wählen

1.8.0: Beschreibung je Befehl (zweite Zeile) und eigene Taste Strg/Cmd+J (shortcutKey) — zwei Instanzen auf einer Seite

Eigenschaften

PropTypDefault
variantstring: standard | search"standard"
placeholderstring"Befehl eingeben ..."
openerLabelstring"Befehle (Strg+K)"
commands *array—
catchAllobject[]
openerbooleantrue
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""
remotearray[]
shortcutstring: global | none"global"
shortcutKeystring"mod+k"

Events & Slots

Events: command, query, select, preview, mode, expand, state

Stellschrauben (Komponenten-Tokens)

TokenDefault
--command-menu-action-secondaryvar(--color-action-secondary)
--command-menu-action-secondary-bordervar(--color-action-secondary-border)
--command-menu-action-secondary-hovervar(--color-action-secondary-hover)
--command-menu-border-defaultvar(--color-border-default)
--command-menu-elevation-controlvar(--elevation-control)
--command-menu-elevation-overlayvar(--elevation-modal)
--command-menu-form-placeholdervar(--form-placeholder)
--command-menu-radius-controlvar(--shape-control)
--command-menu-radius-overlayvar(--shape-card)
--command-menu-radius-smvar(--shape-small)
--command-menu-surface-backdropvar(--color-surface-backdrop)
--command-menu-surface-overlayvar(--color-surface-overlay)
--command-menu-surface-sunkenvar(--color-surface-sunken)
--command-menu-text-defaultvar(--color-text-default)
--command-menu-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

border.hairline color.action.secondary color.action.secondary-border color.action.secondary-hover color.border.default color.surface.backdrop color.surface.overlay color.surface.sunken color.text.default color.text.muted duration.fast easing.standard elevation.control elevation.modal font.family.default font.family.mono form.placeholder layer.modal leading.tight radius.full size.05 size.1 size.2 size.3 size.32 size.4 text.md text.sm text.xs tracking.wide weight.semibold