Skip to content

<alta-narrator-line> ​

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

All components

States ​

The closed list data-state takes on the element.

  • idle
  • typing
  • said

Other attributes ​

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

AttributeOnValues
data-tonethe elementplain, good, warn
data-typingtextpresent 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

Alta OS is open source (MIT).