mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
22 lines
425 B
Vue
22 lines
425 B
Vue
<script lang="ts" setup>
|
|
import type { HTMLAttributes } from "vue";
|
|
import { type PrimitiveProps } from "radix-vue";
|
|
|
|
const props = withDefaults(
|
|
defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>(),
|
|
{
|
|
as: "a",
|
|
},
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive
|
|
:as="as"
|
|
:as-child="asChild"
|
|
:class="cn('transition-colors hover:text-foreground', props.class)"
|
|
>
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|