ink-ui
ink-ui copied to clipboard
Allow to unset the `defaultChoice` for confirm-input
This allows user to unset the defaultChoice.
Nothing will happen when the user simply presses enter with defaultChoice="unset".
BTW, do you think changing this option name to none is better?
Not sure we need this, as most confirm prompts I've seen always suggest a default choice. If you want user to explicitly type y or n and not accept enter as confirmation, you can disable submitOnEnter.
The SSH shows a (yes/no) and only accepts an exact string yes or no.