ConfirmProps
Hierarchy
- Omit<PromptProps<boolean>, validate>
- ConfirmProps
Index
Properties
optionalinvalidError
label
Label to display before or above the prompt itself.
optionalno
Character that triggers a falsy state when pressed. Defaults to "N".
onSubmit
Callback triggered when the value is submitted.
optionalprefix
Single character symbol to display before the label. Defaults to "?"".
optionalyes
Character that triggers a truthy state when pressed. Defaults to "y".
Error message to display when an invalid character is pressed. Defaults to a custom message.