{ "description": "The command component of the command bar. This component is used to display a command, as well as registering the keyboad shortcut.", "methods": [], "displayName": "CommandBar.Command", "props": { "action": { "required": true, "tsType": { "name": "signature", "type": "function", "raw": "() => void | Promise", "signature": { "arguments": [], "return": { "name": "union", "raw": "void | Promise", "elements": [ { "name": "void" }, { "name": "Promise", "elements": [ { "name": "void" } ], "raw": "Promise" } ] } } }, "description": "The function to execute when the command is triggered." }, "label": { "required": true, "tsType": { "name": "string" }, "description": "The command's label." }, "shortcut": { "required": true, "tsType": { "name": "string" }, "description": "The command's shortcut" } }, "composes": [ "Omit" ] }