Command

Ein schnelles, kombinierbares und ungestyltes Befehlsmenü.

Wann verwenden

Wird verwendet, um eine globale Such- und Befehlsausführungsschnittstelle bereitzustellen, mit der Benutzer über Tastenkombinationen schnell auf Funktionen zugreifen und navigieren können.

Verwendung

Suggestions
Settings
↑ ↓ to navigate Enter to select Esc to close

API-Referenz

Command

Eigenschaft
Beschreibung
Typ
Standard

placeholder

Platzhaltertext für die Sucheingabe. string "Type a command or search..."

shortcut

Der visuelle Tastenkürzelhinweis auf der Auslöseschaltfläche. string "⌘K"

CommandGroup

Eigenschaft
Beschreibung
Typ
Standard

heading

The heading title for the command group. string -

CommandItem

Eigenschaft
Beschreibung
Typ
Standard

label

The display label for the item. string -

icon

Optional icon name. IconName -

shortcut

Optional keyboard shortcut to display. string[] -

onSelect

The action or URL to execute when selected. string -

id

The unique identifier for the command item. string -