summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials/toast-container.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-16 16:54:19 +0200
committerDanilo M. <danix@danix.xyz>2026-04-16 16:54:19 +0200
commita4c5d4fa64f4e5491b1ef3195a00801ea4f21b44 (patch)
tree3d7856fd587011e1cb17d2325768bc34fad75afc /themes/danix-xyz-hacker/layouts/partials/toast-container.html
parent9877591a86cb66917c35d5b58190270061d7261a (diff)
downloaddanixxyz-a4c5d4fa64f4e5491b1ef3195a00801ea4f21b44.tar.gz
danixxyz-a4c5d4fa64f4e5491b1ef3195a00801ea4f21b44.zip
feat: add form component templates, i18n strings, and Alpine.js utilities
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/toast-container.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/toast-container.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/toast-container.html b/themes/danix-xyz-hacker/layouts/partials/toast-container.html
new file mode 100644
index 0000000..1c5fbf2
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/partials/toast-container.html
@@ -0,0 +1,13 @@
+{{ define "toast-container" }}
+
+<!-- Toast notification container with Alpine.js integration -->
+<div class="toast-container" x-data="formComponentsData()">
+ <template x-for="toast in toasts" :key="toast.id">
+ <div class="toast" :class="`toast-${toast.type}`" x-show="toasts.length > 0">
+ <span x-text="toast.message"></span>
+ <div class="toast-close" @click="removeToast(toast.id)"></div>
+ </div>
+ </template>
+</div>
+
+{{ end }}