1 {
2 "description": "The command component of the command bar. This component is used to display a command, as well as registering the keyboad shortcut.",
3 "methods": [],
4 "displayName": "CommandBar.Command",
5 "props": {
6 "action": {
7 "required": true,
8 "tsType": {
9 "name": "signature",
10 "type": "function",
11 "raw": "() => void | Promise<void>",
12 "signature": {
13 "arguments": [],
14 "return": {
15 "name": "union",
16 "raw": "void | Promise<void>",
17 "elements": [
18 {
19 "name": "void"
20 },
21 {
22 "name": "Promise",
23 "elements": [
24 {
25 "name": "void"
26 }
27 ],
28 "raw": "Promise<void>"
29 }
30 ]
31 }
32 }
33 },
34 "description": "The function to execute when the command is triggered."
35 },
36 "label": {
37 "required": true,
38 "tsType": {
39 "name": "string"
40 },
41 "description": "The command's label."
42 },
43 "shortcut": {
44 "required": true,
45 "tsType": {
46 "name": "string"
47 },
48 "description": "The command's shortcut"
49 }
50 },
51 "composes": [
52 "Omit"
53 ]
54 }