Skip to content

<alta-achievement-toast> ​

A short message when something is proved or finished.

All components

States ​

The closed list data-state takes on the element.

  • hidden
  • entering
  • shown
  • leaving

Other attributes ​

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

AttributeOnValues
data-kindthe elementproof, quest, chart

Events ​

Dispatched on the element, bubbling. Listen with addEventListener.

  • alta-toast-shown
  • alta-toast-closed

Parts ​

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

icon · body · heading · text · close

Style it ​

css
[data-aui="achievement-toast"][data-state="leaving"] [data-part="icon"] { /* … */ }

Words it reads ​

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

toast. · ui.close

Files ​

packages/ui/src/elements/achievement-toast.ts · packages/ui/styles/components/chain.css

Alta OS is open source (MIT).