We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcc5827 + d20891b commit 564e717Copy full SHA for 564e717
packages/prompts/README.md
@@ -34,7 +34,9 @@ The `isCancel` function is a guard that detects when a user cancels a question w
34
```js
35
import { isCancel, cancel, text } from '@clack/prompts';
36
37
-const value = await text(/* TODO */);
+const value = await text({
38
+ message: 'What is the meaning of life?',
39
+});
40
41
if (isCancel(value)) {
42
cancel('Operation cancelled.');
0 commit comments