prompts icon indicating copy to clipboard operation
prompts copied to clipboard

Add possibility to hide select hint

Open vladshcherbin opened this issue 3 years ago • 2 comments

Is your feature request related to a problem?

I'm using select prompt and would like to hide hint.

Tried using instructions: false, hint: false, hint: '', but it is still there 🙈

Describe the solution you'd like

A boolean hint option, same as in instructions.

Describe alternatives you've considered

An empty string provided as a hint should also work.

vladshcherbin avatar Jul 30 '21 22:07 vladshcherbin

i meet the same question

chnliquan avatar Aug 22 '22 04:08 chnliquan

Provide an empty string containing a single whitespace character, for example:

 const prompt = await prompts({
    name: 'action',
    type: 'select',
    hint: ' ', // instead of '' use ' '
    message: 'Lorem Ipsum',
    choices: []
  })

panoply avatar Aug 23 '23 15:08 panoply