Notifications
Toastr-style notifications for fast feedback without blocking workflow
Use lightweight notifications for completed actions, passive system updates, and recoverable warnings. The playground controls intensity, placement, stack density, dismiss affordance, and progress timing so product flows stay informative without becoming noisy.
1. Variant Matrix
Notification tone and behavior by use case
2. Stack Playground
Build a notification recipe from live controls
3. Timing & Persistence
Choose auto-dismiss rules by interruption cost
- Success and info notifications should dismiss automatically.
- Warning notifications may persist until acknowledged in high-risk flows.
- Errors should stay visible long enough to support recovery.
- Group repeated updates into a stack or digest.
- Limit burst frequency for background sync events.
- Escalate only when the user must act.
4. Placement Rules
Pin to corners that avoid covering primary actions
Best for desktop dashboards where quick visibility matters and topbar actions remain unobstructed.
Best for mobile and dense tables where header filters should remain visible.
5. Governance & Accessibility
Define when notifications escalate, stack, or stay silent
Use `role="status"` for passive updates and avoid firing multiple live regions at once.
Promote from inline helper text to toast-style notifications, then to modal prompts only when recovery requires explicit action.
6. Real-use Snippets
Copy-ready notification markup and stack presets
<div class="notify-card notify-card--success" role="status">
<div class="notify-card__head">
<div class="notify-card__main">
<span class="notify-card__icon"><i class="fa-solid fa-check"></i></span>
<div>
<h4 class="notify-card__title">Saved</h4>
<p class="notify-card__text">Workspace settings synced to the cloud.</p>
</div>
</div>
</div>
</div>
<div class="notify-stack notify-stack--top-right"> <!-- 1..3 notify-card items --> </div>
success -> notify-card--success info -> notify-card--info warn -> notify-card--warn danger -> notify-card--danger