Components
EventToast
src/lib/components/toasts/EventToast.svelte
Purpose
Renders a single notification event as a toast body, using the EventCard
primitive plus optional Badge tags. It is the visual payload pushed by the
shell's pushNotification infrastructure when an error or notification event
needs to surface to the user. Use it indirectly through pushNotification —
you rarely render <EventToast> yourself.
Origin
Custom — built on top of the in-repo EventCard primitive and Badge,
rendered inside a svelte-sonner toast slot.
Usage
Default (error tone)
Code
Critical tone with tags and detail
Code
Success tone
Code
Props
Full prop table: see API reference — eventtoast.
Key props:
label(required) — short category label rendered asEventCard.Label.title(required) — single-line title.message(required) — body message.time(Date | number | string) — formatted viaformatUiDateTimeusing the activeuiLang.tone("critical" | "error" | "warning" | "info" | "success", default"error") — driveseventColor.tags(Array<{ label: string; tone: "danger" | "neutral" | "warning" | "info" | "success" }>) — optional badges.detail(string) — optional secondary line rendered smaller under the message.
Next steps
Last modified on