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

16 lines
380 B
Vue
Raw Normal View History

2020-10-19 01:39:31 +13:00
<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>