---
url: /reference/api/logger/prompts.Interface.PathOptions.md
---
# Interface: PathOptions

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

Options for the [path](prompts.Variable.path.md) prompt.

## Extends

* [`CommonOptions`](prompts.Interface.CommonOptions.md)

## Properties

&#x20;`accessible?`

`boolean`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`accessible`](prompts.Interface.CommonOptions.md#property-accessible)

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

&#x20;`directory?`

`boolean`

When `true` only **directories** appear in suggestions while you navigate.

‐

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

&#x20;`initialValue?`

`string`

The starting path shown when the prompt first renders, which users can edit
before submitting. If not provided it will fall back to the given `root`,
or the current working directory.

In `directory` mode, if the initial value points to a directory that exists,
pressing enter will submit the input instead of jumping to the first child.

‐

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

&#x20;`input?`

`Readable`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`input`](prompts.Interface.CommonOptions.md#property-input)

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

&#x20;`message`

`string`

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

‐

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

&#x20;`output?`

`Writable`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`output`](prompts.Interface.CommonOptions.md#property-output)

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

&#x20;`root?`

`string`

The starting directory for path suggestions (defaults to current working directory).

‐

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

&#x20;`signal?`

`AbortSignal`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`signal`](prompts.Interface.CommonOptions.md#property-signal)

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

&#x20;`validate?`

`Validate`<`string`>

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.

‐

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

&#x20;`withGuide?`

`boolean`

‐

[`CommonOptions`](prompts.Interface.CommonOptions.md).[`withGuide`](prompts.Interface.CommonOptions.md#property-withguide)

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