From f8ae7740f4a79d1374e136aba58b4c75f09b1396 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sun, 25 Sep 2022 19:25:17 +0800
Subject: feat: More complete alert

---
 apps/kit/src/routes/book/alerts/+page.svelte | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'apps/kit/src/routes/book/alerts/+page.svelte')

diff --git a/apps/kit/src/routes/book/alerts/+page.svelte b/apps/kit/src/routes/book/alerts/+page.svelte
index 93b4850..566ccca 100644
--- a/apps/kit/src/routes/book/alerts/+page.svelte
+++ b/apps/kit/src/routes/book/alerts/+page.svelte
@@ -26,6 +26,7 @@
         type="info"
         message="This is message"
         title="This is title"
+        closeable
         actions={[
             {
                 id: "confirm",
@@ -45,6 +46,8 @@
     <Alert
         on:rightLinkCliked={() => alert("Right link clicked")}
         rightLinkText="Link or action"
+        title="Go here"
+        message="Hehe"
         type="info"
     />
 </section>
@@ -53,7 +56,15 @@
     <Alert
         title="This is title"
         listItems={["Message 1", "Message 2"]}
-        type="info"
+        type="error"
+        message="This is bad dude"
+        closeable
+        closeableCooldown="60"
+        id="alert-1"
+        on:actrepeat={() => {
+            alert("Repeat requested");
+        }}
+        actions={[{ id: "repeat", text: "Try again" }]}
     />
 </section>
 <section>
-- 
cgit v1.3

