Components / Toast
Toast
Transient application feedback with actions, dismissal and polite or assertive announcements.
html
toast.show('Workspace saved', { description: 'Your changes are now available.', tone: 'success' });
<aevko-toaster />Installation
npx aevko-ui@latest add toast --yesSource 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 slot | Type | Default | Description |
|---|---|---|---|
show(title, options) | (string, AevkoToastOptions) => string | service method | Queues a toast and returns its id. |
tone | 'default' | 'success' | 'info' | 'warning' | 'error' | 'default' | Announcement urgency and visual treatment. |
duration | number | 5000 | Automatic dismissal delay; zero persists. |
actionLabel / action | string / callback | empty | Optional application action. |
dismiss / clear | service methods | available | Removes 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.