mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
21 lines
512 B
Vue
21 lines
512 B
Vue
<script lang="ts" setup>
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { cn } from '@/lib/utils'
|
|
import { Primitive, type PrimitiveProps } from 'reka-ui'
|
|
|
|
const props = withDefaults(defineProps<PrimitiveProps & { class?: HTMLAttributes['class'] }>(), {
|
|
as: 'a',
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
data-slot="breadcrumb-link"
|
|
:as="as"
|
|
:as-child="asChild"
|
|
:class="cn('hover:text-gray-950 transition-colors dark:hover:text-gray-50', props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|