diff --git a/packages/prompts/README.md b/packages/prompts/README.md index 9e8b5bf8..61d22e93 100644 --- a/packages/prompts/README.md +++ b/packages/prompts/README.md @@ -34,7 +34,9 @@ The `isCancel` function is a guard that detects when a user cancels a question w ```js import { isCancel, cancel, text } from '@clack/prompts'; -const value = await text(/* TODO */); +const value = await text({ + message: 'What is the meaning of life?', +}); if (isCancel(value)) { cancel('Operation cancelled.');