---
url: /reference/api/logger/prompts.Interface.AutocompleteOptions.md
---
# Interface: AutocompleteOptions\<Value>

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:145

## Extends

* `AutocompleteSharedOptions`<`Value`>

## Type Parameters

&#x20;`Value`

## Properties

&#x20;`accessible?`

`boolean`

‐

`AutocompleteSharedOptions.accessible`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:42

&#x20;`completeOnTab?`

`boolean`

When `true`, pressing Tab fills the input with the currently focused
option's value, as if the user had typed it.

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:158

&#x20;`filter?`

(`search`, `option`) => `boolean`

Custom filter function to match options against the search input.

`AutocompleteSharedOptions.filter`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:143

&#x20;`initialUserInput?`

`string`

The starting value shown in the users input box.

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:153

&#x20;`initialValue?`

`Value`

The initially selected option from the list.

‐

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:149

&#x20;`input?`

`Readable`

‐

`AutocompleteSharedOptions.input`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:38

&#x20;`maxItems?`

`number`

The maximum number of items/options to display in the autocomplete list at once.

`AutocompleteSharedOptions.maxItems`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:128

&#x20;`message`

`string`

The message or question shown to the user above the input.

`AutocompleteSharedOptions.message`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:117

&#x20;`options`

| [`Option`](prompts.TypeAlias.Option.md)<`Value`>\[] | ((`this`) => [`Option`](prompts.TypeAlias.Option.md)<`Value`>\[])

The options to present, or a function that returns the options to present
allowing for custom search/filtering.

**See**

https://bomb.sh/docs/clack/packages/prompts/#dynamic-options-getter

`AutocompleteSharedOptions.options`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:124

&#x20;`output?`

`Writable`

‐

`AutocompleteSharedOptions.output`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:39

&#x20;`placeholder?`

`string`

Placeholder text displayed when the search field is empty. When set, pressing
tab copies the placeholder into the input.

`AutocompleteSharedOptions.placeholder`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:133

&#x20;`signal?`

`AbortSignal`

‐

`AutocompleteSharedOptions.signal`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:40

&#x20;`validate?`

`Validate`<`Value` | `Value`\[]>

A function or a [Standard Schema](https://github.com/standard-schema/standard-schema)
that validates user input. If a custom function is given, you should return a `string` or `Error`
to show as a validation error, or `undefined` to accept the result.

`AutocompleteSharedOptions.validate`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:139

&#x20;`withGuide?`

`boolean`

‐

`AutocompleteSharedOptions.withGuide`

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:41
