Skip to content

Interface: MultiLineOptions ​

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

Options for the multiline prompt

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in

accessible?

boolean

‐

TextOptions.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).

TextOptions.defaultValue

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.

TextOptions.initialValue

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

input?

Readable

‐

TextOptions.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.

TextOptions.message

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

output?

Writable

‐

TextOptions.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.

TextOptions.placeholder

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

showSubmit?

boolean

When enabled it shows a [ submit ] button that can be focused with tab. By default, pressing Enter twice submits the input

Default

ts
false;

‐

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

signal?

AbortSignal

‐

TextOptions.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.

TextOptions.validate

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

withGuide?

boolean

‐

TextOptions.withGuide

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

基于 MIT 许可证发布