- Enhanced UserMenu.vue by implementing an extended user type for better user data handling and updated user initials logic. - Adjusted AppHeader.vue and AreaTabs.vue for improved layout and spacing, ensuring a more cohesive design. - Updated CartButton.vue and Tabs components for consistent styling and better responsiveness. These changes aim to enhance the overall usability and visual appeal of the application, providing a smoother 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-[45px] bg-white/5 p-1.5 text-white/70',
|
|
props.class
|
|
)
|
|
">
|
|
<slot />
|
|
</TabsList>
|
|
</template>
|