Command

高速で構成可能、スタイル付けされていないコマンドメニュー。

いつ使うか

グローバルな検索とコマンド実行のインターフェースを提供し、ユーザーがキーボードショートカットを使って素早く機能にアクセスしナビゲートできるようにするために使用されます。

使用法

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

API リファレンス

Command

プロパティ
説明
タイプ
デフォルト

placeholder

検索入力のプレースホルダーテキスト。 string "Type a command or search..."

shortcut

トリガーボタン上の視覚的なショートカットヒント。 string "⌘K"

CommandGroup

プロパティ
説明
タイプ
デフォルト

heading

The heading title for the command group. string -

CommandItem

プロパティ
説明
タイプ
デフォルト

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 -