Components / Toast

Toast

Transient application feedback with actions, dismissal and polite or assertive announcements.

example.component.html
html
toast.show('Workspace saved', { description: 'Your changes are now available.', tone: 'success' });
<aevko-toaster />

Installation

npx aevko-ui@latest add toast --yes

Source ownership

Customization

Inject the local store where events occur, mount one toaster near the application root and style tones through semantic tokens or local source.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.

API reference

Property or slotTypeDefaultDescription
show(title, options)(string, AevkoToastOptions) => stringservice methodQueues a toast and returns its id.
tone'default' | 'success' | 'info' | 'warning' | 'error''default'Announcement urgency and visual treatment.
durationnumber5000Automatic dismissal delay; zero persists.
actionLabel / actionstring / callbackemptyOptional application action.
dismiss / clearservice methodsavailableRemoves one or all notifications.

Accessibility contract

Accessibility

Included behavior

  • Ordinary notifications use status while error notifications use alert; each item includes a labelled dismissal control.

Your responsibility

Keep messages concise, reserve error tone for urgent failure and ensure any action remains available elsewhere after automatic dismissal.

Back to all components