From 27a98274c1feeaaccd74147e9cd8d525916879b5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 13 Dec 2025 18:06:56 -0800 Subject: [PATCH] add NotificationBadge component reusable red dot/count badge for notifications --- .../components/ui/NotificationBadge.svelte | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/lib/components/ui/NotificationBadge.svelte diff --git a/src/lib/components/ui/NotificationBadge.svelte b/src/lib/components/ui/NotificationBadge.svelte new file mode 100644 index 00000000..7fa89589 --- /dev/null +++ b/src/lib/components/ui/NotificationBadge.svelte @@ -0,0 +1,60 @@ + + + + +{#if count > 0} + + {#if showCount} + {count > 99 ? '99+' : count} + {/if} + +{/if} + +