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

```ts twoslash
// @include: imports
const intro: (title?, opts?) => void;
```

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

The `intro` function defines the beginning of an interaction.

## Parameters

`title?`

`string`

Optional title to be displayed.

`opts?`

[`CommonOptions`](prompts.Interface.CommonOptions.md)

Additional configuration options.

## Returns

`void`

## See

https://bomb.sh/docs/clack/packages/prompts/#intro

## Example

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

intro("Welcome to clack");
```
