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

```ts twoslash
// @include: imports
const select: <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:108

## Type Parameters

&#x20;`Value`

## Parameters

`opts`

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

## Returns

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