# Text-Box

## Description

```markup
<text-box></text-box>
```

**Source Code**: <https://github.com/Monogatari/Monogatari/tree/develop/src/components/text-box>

## Properties

| Name   | Description                                                                                                                                                  |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `mode` | <p>Default is <code>adv</code>.</p><p></p><p>The mode the textbox is currently displaying dialogs on, whether <code>adv</code> or <code>nvl</code> mode.</p> |

## Methods

### `show(): void`

Shows the text-box element.

### `checkUnread(): void`

This method is called by the [Dialog action ](/documentation/2.1.0/script-actions/dialogs.md)after writing an NVL dialog. It will check if the player has an unread dialog (one that was added and the player has to scroll to read it). If there is one, the class `unread` will be added to the `text-box` element.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.monogatari.io/documentation/2.1.0/components/text-box.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
