mirror of
https://github.com/Xevion/the-office.git
synced 2026-01-31 08:26:13 -06:00
21 lines
494 B
Vue
21 lines
494 B
Vue
<script lang="ts" setup>
|
|
import type { HTMLAttributes } from 'vue';
|
|
import { Primitive, type PrimitiveProps } from 'reka-ui';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
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-foreground transition-colors', props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|