24 lines
583 B
Vue
24 lines
583 B
Vue
<script setup lang="ts">
|
|
import type { TabsListProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { TabsList } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<TabsListProps & { class?: HTMLAttributes["class"] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
|
</script>
|
|
|
|
<template>
|
|
<TabsList
|
|
data-slot="tabs-list"
|
|
v-bind="delegatedProps"
|
|
:class="cn(
|
|
'inline-flex h-10 w-fit items-center gap-2',
|
|
props.class,
|
|
)"
|
|
>
|
|
<slot />
|
|
</TabsList>
|
|
</template>
|