English
<alta-narrator-line>
One line said by the guide, typed out, with a tone.
States
The closed list data-state takes on the element.
idletypingsaid
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.
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