koel/resources/assets/js/components/user/UserAvatar.vue
2024-07-06 17:45:01 +02:00

15 lines
350 B
Vue

<template>
<img
:alt="`Avatar of ${user.name}`"
:src="user.avatar"
:title="user.name"
class="rounded-full aspect-square bg-k-bg-primary object-cover"
>
</template>
<script lang="ts" setup>
import { toRefs } from 'vue'
const props = defineProps<{ user: Pick<User, 'name' | 'avatar'> }>()
const { user } = toRefs(props)
</script>