Filter products using select instead of toggles

This commit is contained in:
2025-12-08 13:23:33 +01:00
parent cdb8e44228
commit 7d9261dd6e
13 changed files with 142 additions and 39 deletions
+3 -11
View File
@@ -1,23 +1,15 @@
<script setup lang="ts">
import type { TabsRootEmits, TabsRootProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import { reactiveOmit } from "@vueuse/core"
import { TabsRoot, useForwardPropsEmits } from "reka-ui"
import { cn } from "@/lib/utils"
const props = defineProps<TabsRootProps & { class?: HTMLAttributes["class"] }>()
const props = defineProps<TabsRootProps>()
const emits = defineEmits<TabsRootEmits>()
const delegatedProps = reactiveOmit(props, "class")
const forwarded = useForwardPropsEmits(delegatedProps, emits)
const forwarded = useForwardPropsEmits(props, emits)
</script>
<template>
<TabsRoot
data-slot="tabs"
v-bind="forwarded"
:class="cn('flex flex-col gap-2', props.class)"
>
<TabsRoot v-bind="forwarded">
<slot />
</TabsRoot>
</template>