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.
1 parent 90f8e3d commit d20891bCopy full SHA for d20891b
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