refactored view package
This commit is contained in:
10
internal/view/popup/toastContainer.templ
Normal file
10
internal/view/popup/toastContainer.templ
Normal file
@@ -0,0 +1,10 @@
|
||||
package popup
|
||||
|
||||
// ToastContainer displays stacked toast notifications (success, warning, info)
|
||||
// Supports both regular toasts (AlpineJS) and WebSocket toasts (HTMX OOB swaps)
|
||||
templ ToastContainer() {
|
||||
<script src="/static/js/toasts.js" defer></script>
|
||||
<div class="fixed top-20 right-5 z-40 flex flex-col gap-3 max-w-sm pointer-events-none">
|
||||
<div id="toast-ws-container"></div>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user