- Update TabsList.vue to adjust height and border radius for a more modern look - Modify TabsTrigger.vue to enhance padding, font size, and line height for better readability and user experience
30 lines
698 B
Vue
30 lines
698 B
Vue
<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>
|