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.
29 lines
698 B
29 lines
698 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-auto items-center justify-center rounded-[35px] bg-white/5 p-1.5 text-white/70',
|
|
props.class
|
|
)
|
|
">
|
|
<slot />
|
|
</TabsList>
|
|
</template>
|
|
|