# `<alta-narrator-line>`

> One line said by the guide, typed out, with a tone.

One line said by the guide, typed out, with a tone.

[All components](https://docs.altasystem.ai/ui/components/)

## States

The closed list `data-state` takes on the element.

- <span id="state-idle"></span>`idle`
- <span id="state-typing"></span>`typing`
- <span id="state-said"></span>`said`

## Other attributes

On the element, or on a part (`part: attribute`). A list of values is closed.

| Attribute | On | Values |
|---|---|---|
| `data-tone` | the element | `plain`, `good`, `warn` |
| `data-typing` | `text` | present or absent |

## Events

Dispatched on the element, bubbling. Listen with `addEventListener`.

- <span id="event-alta-said"></span>`alta-said`

## Parts

Every node you can style, as `[data-part="…"]`.

`avatar` · `main` · `head` · `speaker` · `bubble` · `text` · `caret`

## Slots

Children with `slot="…"` replace or add to these places.

`avatar` · `actions`

## Style it

```css
[data-aui="narrator-line"][data-state="said"] [data-part="avatar"] { /* … */ }
```

## Words it reads

Keys of the string tables (override them on `<alta-provider>`).

`narrator.`

## Files

`packages/ui/src/elements/narrator-line.ts` · `packages/ui/styles/components/chain.css`
