<script setup lang="ts">
import type { TabsListProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import type { TabsListVariants } from "."
import { reactiveOmit } from "@vueuse/core"
import { TabsList } from "reka-ui"
import { cn } from "@/lib/utils"
import { tabsListVariants } from "."

export interface TabsListWrapperProps extends TabsListProps {
  variant?: TabsListVariants["variant"]
  class?: HTMLAttributes["class"]
}

const props = defineProps<TabsListWrapperProps>()
const delegatedProps = reactiveOmit(props, "class", "variant")
</script>

<template>
  <TabsList
    v-bind="delegatedProps"
    :class="cn(tabsListVariants({ variant }), props.class)"
  >
    <slot />
  </TabsList>
</template>
