<script setup>
import { reactiveOmit } from "@vueuse/core";
import { TabsTrigger, useForwardProps } from "reka-ui";
import { cn } from "../../../utils/cn";
const props = defineProps({
  value: { type: [String, Number], required: true },
  disabled: { type: Boolean, required: false },
  asChild: { type: Boolean, required: false },
  as: { type: null, required: false },
  class: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true }
});
const delegatedProps = reactiveOmit(props, "class");
const forwardedProps = useForwardProps(delegatedProps);
</script>

<template>
  <TabsTrigger
    data-slot="tabs-trigger"
    v-bind="forwardedProps"
    :class="cn(
  'inline-flex h-10 items-center gap-1.5 px-5 text-sm font-medium whitespace-nowrap text-zinc-700 transition-colors duration-150 first-of-type:pl-0 last-of-type:pr-0 disabled:pointer-events-none disabled:opacity-50 hover:text-(--primary) data-[state=active]:text-(--primary)',
  props.class
)"
  >
    <span
      data-slot="tabs-trigger-content"
      class="inline-flex items-center gap-1.5"
    >
      <slot />
    </span>
  </TabsTrigger>
</template>
