Interface: InputStep
Defined in: tui/ink/wizard.tsx:37
A line of text.
Extends
BaseStep
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
default? | FromAnswers<string> | - | - | tui/ink/wizard.tsx:39 |
message | FromAnswers<string> | - | BaseStep.message | tui/ink/wizard.tsx:23 |
name | string | Key of this step's answer in the result. | BaseStep.name | tui/ink/wizard.tsx:22 |
type | "input" | - | - | tui/ink/wizard.tsx:38 |
validate? | (value, answers) => string | true | true to accept, or the message to show. | - | tui/ink/wizard.tsx:41 |
when? | (answers) => boolean | Skips the step (leaving no answer) when it returns false. | BaseStep.when | tui/ink/wizard.tsx:25 |