Skip to content

Commit

Permalink
Feat: Expose customization options for Select/Checkbox prompts help t…
Browse files Browse the repository at this point in the history
…ips (#1381)

* Chore: Add type tests to @inquirer/prompts

* Feat: Expose customization options for Select/Checkbox prompts help tips

Fix #963
Fix #1217
  • Loading branch information
SBoudrias committed Apr 12, 2024
1 parent fedcd16 commit 196f954
Show file tree
Hide file tree
Showing 12 changed files with 459 additions and 114 deletions.
7 changes: 7 additions & 0 deletions packages/checkbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@ type Theme = {
unchecked: string;
cursor: string;
};
helpMode: 'always' | 'never' | 'auto';
};
```

### `theme.helpMode`

- `auto` (default): Hide the help tips after an interaction occurs. The scroll tip will hide after any interactions, the selection tip will hide as soon as a first selection is done.
- `always`: The help tips will always show and never hide.
- `never`: The help tips will never show.

# License

Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
Expand Down

0 comments on commit 196f954

Please sign in to comment.