# BeforeSuggestionShowEvent (@salmonui/chat/text-suggest)

> The BeforeSuggestionShowEvent interface of @salmonui/chat/text-suggest: Cancellable event fired before a suggestion shows.

Canonical: https://salmonui.dev/docs/reference/chat/text-suggest/BeforeSuggestionShowEvent

```ts
import type { BeforeSuggestionShowEvent } from '@salmonui/chat/text-suggest';
```

Entry index: https://salmonui.dev/docs/reference/chat/text-suggest (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/text-suggest.md).

## Reference

Kind: interface

```ts
interface BeforeSuggestionShowEvent {
    readonly text: string;
    readonly defaultPrevented: boolean;
    preventDefault(): void;
}
```

Cancellable event fired before a suggestion shows.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `readonly text: string;` |  |  |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
