mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
18 lines
518 B
Vue
18 lines
518 B
Vue
<template>
|
|
<div v-bind="$props" class="bg-dark-700 overflow-hidden flex items-center justify-center">
|
|
<Skeleton :enabled="!url" class="!h-full !w-full">
|
|
<img class="cursor-pointer bg-dark-700 ring-1 w-full h-full object-cover" :src="url" :alt="alt" />
|
|
</Skeleton>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import type { HTMLAttributes } from "vue";
|
|
|
|
interface Props extends /* @vue-ignore */ HTMLAttributes {
|
|
url?: string;
|
|
alt?: string;
|
|
}
|
|
|
|
defineProps<Props>();
|
|
</script> |