popup toast notification success alert message popup toast notification success alert message snackbar success toast notification popup notification message
Popup Base
Fetch pattern JSON:
curl https://webspire.de/patterns/popup/base.json base.html
<div class="flex min-h-64 items-center justify-center">
<button type="button" onclick="this.nextElementSibling.hidden=false" class="rounded-lg bg-emerald-600 px-5 py-2.5 text-sm font-medium text-white shadow transition hover:bg-emerald-700">Show Notification</button>
<div class="ws-popup fixed bottom-4 right-4 z-50 flex w-80 items-start gap-3 rounded-lg bg-[var(--ws-popup-bg)] p-4 shadow-lg ring-1 ring-[var(--ws-popup-border)]" hidden>
<div class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-emerald-100 text-emerald-600">
<svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
</svg>
</div>
<div class="flex-1">
<p class="text-sm font-medium text-[var(--ws-popup-text)]">Success</p>
<p class="mt-0.5 text-xs text-[var(--ws-popup-text-soft)]">Your changes have been saved successfully.</p>
</div>
<button type="button" aria-label="Close notification" onclick="this.closest('.ws-popup').hidden=true" class="shrink-0 text-[var(--ws-popup-text-soft)] transition hover:text-[var(--ws-popup-text)]">
<svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
</div>
Details
Responsive Dark Mode Tailwind Only SSR Safe Copy & Paste Requires JS
Stable Published
popuptoastnotificationsuccessalertmessage
Slots
| Name | Required | Description |
|---|---|---|
| icon | No | Status icon (checkmark for success). |
| message | Yes | Notification title and description text. |
| close | No | Close/dismiss button. |
Success toast notification fixed to the bottom-right corner with a green checkmark icon, message text, and a close button. Use as a baseline for all toast notification variants.