Skip to content

Input Button Action

The input action inserts text at the current cursor position in the focused element.

interface InputButtonAction {
type: 'input';
str: string; // the string to insert
}

Example

This button opens the command palette and inserts the string help. Resulting in the command palette being opened with help already typed in the search bar.

```meta-bind-button
style: primary
label: Help Commands
actions:
- type: command
command: command-palette:open
- type: input
str: help
```