We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Currently, the left decorative line is not displayed when using \n line break.
\n
import { confirm } from '@clack/prompts' const msg = await confirm({ message: 'Hello,\nWorld!', }),
◆ Hello, World! │ ● Yes / ○ No └
Describe the solution you'd like
Let message accept string[], like this:
string[]
import { confirm } from '@clack/prompts' const msg = await confirm({ message: ['Hello,', 'World!'], }),
◆ Hello, │ World! │ ● Yes / ○ No └
The text was updated successfully, but these errors were encountered:
When we properly support multi line/textarea prompts, we could probably utilize parts of it for message as well.
message
Not entirely sold on the proposed API, though. I would prefer proper support for template strings with newlines baked in.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Currently, the left decorative line is not displayed when using
\n
line break.Describe the solution you'd like
Let message accept
string[]
, like this:The text was updated successfully, but these errors were encountered: