UNPKG

@scalar/api-client

Version:

the open source API testing client

39 lines 1.54 kB
/** * Command Action Input Component * * A textarea input component for command palette actions. * Supports v-model binding, auto-focus, and special keyboard handling: * - Enter submits the parent form (unless Shift is held) * - Backspace emits delete event when input is empty (for navigation back) * * @example * <CommandActionInput * v-model="inputValue" * placeholder="Enter name..." * :autofocus="true" * @delete="handleBack" * /> */ declare const _default: import("vue").DefineComponent<{ /** Current value of the input */ modelValue?: string; /** Placeholder text shown when input is empty */ placeholder?: string; /** Whether to automatically focus the input when mounted */ autofocus?: boolean; }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { delete: (keyboardEvent: KeyboardEvent) => any; "update:modelValue": (value: string) => any; }, string, import("vue").PublicProps, Readonly<{ /** Current value of the input */ modelValue?: string; /** Placeholder text shown when input is empty */ placeholder?: string; /** Whether to automatically focus the input when mounted */ autofocus?: boolean; }> & Readonly<{ onDelete?: ((keyboardEvent: KeyboardEvent) => any) | undefined; "onUpdate:modelValue"?: ((value: string) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; export default _default; //# sourceMappingURL=CommandActionInput.vue.d.ts.map