You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
722 B

<script setup lang="ts">
import type { TabsListProps } from 'reka-ui'
import type { HTMLAttributes } from 'vue'
import { TabsList, useForwardProps } from 'reka-ui'
import { cn } from '~/lib/utils'
interface Props extends TabsListProps {
class?: HTMLAttributes['class']
}
const props = defineProps<Props>()
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props
return delegated
})
const forwarded = useForwardProps(delegatedProps)
</script>
<template>
<TabsList
v-bind="forwarded"
:class="
cn(
'inline-flex h-12 items-center justify-center rounded-xl bg-white/5 p-1.5 text-white/70',
props.class
)
"
>
<slot />
</TabsList>
</template>