# 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 ](https://developers.monogatari.io/documentation/develop/script-actions/dialogs)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.
