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

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

Options for the [password](prompts.Variable.password.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;`clearOnError?`

`boolean`

When enabled it causes the input to be cleared if/when validation fails.

**Default**

```ts twoslash
// @include: imports
false;
```

‐

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

&#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;`mask?`

`string`

Character to use for masking input.

**Default**

```ts twoslash
// @include: imports
▪/•
```

‐

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

&#x20;`message`

`string`

The prompt 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:771

&#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;`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:782

&#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
