From e885560c458b073424200a09d0e1c8d2cc8ff01c Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 2 Jan 2026 11:14:15 +0300 Subject: [PATCH] feat(CheckboxFilter): create CheckboxFilter component --- .../ui/CheckboxFilter/CheckboxFilter.svelte | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 src/shared/ui/CheckboxFilter/CheckboxFilter.svelte diff --git a/src/shared/ui/CheckboxFilter/CheckboxFilter.svelte b/src/shared/ui/CheckboxFilter/CheckboxFilter.svelte new file mode 100644 index 0000000..50d1692 --- /dev/null +++ b/src/shared/ui/CheckboxFilter/CheckboxFilter.svelte @@ -0,0 +1,98 @@ + + + +
+ +

{filterName}

+ +
+
+ + + {#if isOpen} +
+
+ {#each categories as category (category.id)} +
+ onCategoryToggle(category.id)} + class="cursor-pointer transition-transform active:scale-95" + /> + +
+ {/each} +
+
+ {/if} +
+