Skip to content

Interface: TextOptions ​

Defined in: node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:665

Options for the text prompt

Extends ​

Extended by ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in

accessible?

boolean

‐

CommonOptions.accessible

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:42

defaultValue?

string

A fallback value returned when the user provides nothing (empty input).

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:677

initialValue?

string

The starting value shown when the prompt first renders. Users can edit this value before submitting.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:682

input?

Readable

‐

CommonOptions.input

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:38

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:669

output?

Writable

‐

CommonOptions.output

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:39

placeholder?

string

A visual hint shown when the field has no content.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:673

signal?

AbortSignal

‐

CommonOptions.signal

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:40

validate?

Validate<string>

A function or a 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:688

withGuide?

boolean

‐

CommonOptions.withGuide

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:41

Released under the MIT License