glowing-fiesta-original/app/components/ui/breadcrumb/BreadcrumbLink.vue
Liviu Burcusel 0cec9f5afd
All checks were successful
Production Build and Deploy / Build (push) Successful in 52s
Production Build and Deploy / Deploy (push) Successful in 19s
[Closes #1] [Closes !5] Migrated from PrimeVue to shadcn
2025-12-22 16:20:35 +01:00

21 lines
520 B
Vue

<script lang="ts" setup>
import type { PrimitiveProps } from "reka-ui";
import type { HTMLAttributes } from "vue";
import { Primitive } 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>