mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +00:00
23 lines
441 B
Vue
23 lines
441 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue";
|
|
import { type AvatarVariants } from ".";
|
|
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
class?: HTMLAttributes["class"];
|
|
size?: AvatarVariants["size"];
|
|
shape?: AvatarVariants["shape"];
|
|
}>(),
|
|
{
|
|
size: "sm",
|
|
shape: "circle",
|
|
},
|
|
);
|
|
</script>
|
|
|
|
<template>
|
|
<AvatarRoot :class="cn(avatarVariant({ size, shape }), props.class)">
|
|
<slot />
|
|
</AvatarRoot>
|
|
</template>
|