Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/client/src/components/avatar.vue
2020-10-18 14:39:31 +02:00

16 lines
380 B
Vue

<template>
<img :src="`https://ui-avatars.com/api/?name=${seed}&size=${size}`" />
</template>
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator'
@Component({
name: 'neko-avatar',
})
export default class extends Vue {
@Prop(String) readonly seed: string | undefined;
@Prop(Number) readonly size: number | undefined;
}
</script>