---
url: /reference/api/logger/prompts.Variable.groupMultiselect.md
---
# Variable: groupMultiselect

```ts twoslash
// @include: imports
const groupMultiselect: <Value>(
  opts,
) => Promise<Value[] | typeof CANCEL_SYMBOL>;
```

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:532

The `groupMultiselect` prompt extends the [multiselect](prompts.Variable.multiselect.md) prompt to allow
arranging distinct Multi-Selects, whilst keeping all of them interactive.

## Type Parameters

&#x20;`Value`

## Parameters

`opts`

[`GroupMultiSelectOptions`](prompts.Interface.GroupMultiSelectOptions.md)<`Value`>

The options for the group multiselect prompt

## Returns

`Promise`<`Value`\[] | *typeof* [`CANCEL_SYMBOL`](prompts.Variable.CANCEL_SYMBOL.md)>

## See

https://bomb.sh/docs/clack/packages/prompts/#group-multiselect

## Example

```ts twoslash
// @include: imports
import { groupMultiselect } from "@clack/prompts";

const result = await groupMultiselect({
  message: "Define your project",
  options: {
    "Testing": [
      { value: "Jest", hint: "JavaScript testing framework" },
      { value: "Playwright", hint: "End-to-end testing" },
    ],
    "Language": [
      { value: "js", label: "JavaScript", hint: "Dynamic typing" },
      { value: "ts", label: "TypeScript", hint: "Static typing" },
    ],
  },
});
```
