[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

docs: add example for groupMultiselect prompt to README file. (#215)

Co-authored-by: James Garbutt <43081j@users.noreply.github.com>

authored by

Dmytro Shulha
James Garbutt
and committed by
GitHub
(Apr 13, 2025, 6:36 PM +0100) dccb07cc 42379860

+22
+22
packages/prompts/README.md
··· 110 110 }); 111 111 ``` 112 112 113 + It is also possible to select multiple items arranged into hierarchy by using `groupMultiselect`: 114 + 115 + ```js 116 + import { groupMultiselect } from '@clack/prompts'; 117 + 118 + const basket = await groupMultiselect({ 119 + message: 'Select your favorite fruits and vegetables:', 120 + options: { 121 + fruits: [ 122 + { value: 'apple', label: 'apple' }, 123 + { value: 'banana', label: 'banana' }, 124 + { value: 'cherry', label: 'cherry' }, 125 + ], 126 + vegetables: [ 127 + { value: 'carrot', label: 'carrot' }, 128 + { value: 'spinach', label: 'spinach' }, 129 + { value: 'potato', label: 'potato' }, 130 + ] 131 + } 132 + }); 133 + ``` 134 + 113 135 ### Spinner 114 136 115 137 The spinner component surfaces a pending action, such as a long-running download or dependency installation.