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" + /> + + {category.name} + + + {/each} + + + {/if} + +