English
<alta-achievement-toast>
A short message when something is proved or finished.
States
The closed list data-state takes on the element.
hiddenenteringshownleaving
Other attributes
On the element, or on a part (part: attribute). A list of values is closed.
| Attribute | On | Values |
|---|---|---|
data-kind | the element | proof, quest, chart |
Events
Dispatched on the element, bubbling. Listen with addEventListener.
alta-toast-shownalta-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