Pre-release component / Notifications
SuperToaster
Toast notification system with intelligent stacking, positioning, and auto-dismiss. Trigger notifications from HTML or JavaScript events via data-* attributes.
01Features
What makes it Super
Smart stacking
Toasts stack intelligently with configurable limits. Older toasts collapse or are replaced when limit is reached.
<div data-az-component="super-toaster"
data-az-stack-limit="5"
data-az-stack-behavior="collapse"
data-az-stack-gap="12">
Flexible positioning
Position toasts in any corner or edge. Different positions for different toast types.
<div data-az-position="top-right"
data-az-position-error="top-center"
data-az-offset-x="24"
data-az-offset-y="24">
Auto-dismiss control
Configurable dismiss timers per toast type. Pause on hover, progress bar indicators, and manual dismiss.
<div data-az-auto-dismiss="5000"
data-az-dismiss-error="false"
data-az-pause-on-hover="true"
data-az-progress-bar="true">
Action buttons
Add action buttons to toasts. Undo operations, view details, or retry failed actions.
<button
data-az-toast-trigger
data-az-toast-message="Item deleted"
data-az-toast-action="Undo"
data-az-toast-action-url="/api/undo">
HTMX response handling
Automatically show toasts from HTMX response headers. No JavaScript required to display server messages.
# Server response header
HX-Trigger: {"showToast": {
"type": "success",
"message": "User saved successfully"
}}
Screen reader support
Designed to announce toasts through ARIA live regions according to their urgency. Not yet audited.
<div data-az-aria-live="polite"
data-az-aria-live-error="assertive"
role="status">
02Usage
Complete example
A toast notification system with multiple trigger patterns.
<!-- Toaster Container -->
<div
data-az-component="super-toaster"
data-az-position="top-right"
data-az-stack-limit="5"
data-az-auto-dismiss="5000"
data-az-pause-on-hover="true"
data-az-progress-bar="true">
</div>
<!-- Trigger from Button -->
<button
data-az-toast-trigger
data-az-toast-type="success"
data-az-toast-message="Settings saved!">
Save Settings
</button>
<!-- Trigger with Action -->
<button
data-az-toast-trigger
data-az-toast-type="warning"
data-az-toast-message="User will be deleted"
data-az-toast-action="Undo"
data-az-toast-action-callback="undoDelete">
Delete User
</button>
<!-- HTMX Form with Toast Response -->
<form hx-post="/api/users"
hx-target="#result">
<!-- Server responds with HX-Trigger header -->
</form>
Ready for better notifications?
SuperToaster is part of the AZ UI Kit, which is not yet published. Request a briefing to ask about early access.