mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-17 14:22:02 +00:00
55 lines
1 KiB
Vue
55 lines
1 KiB
Vue
<template>
|
|
<div class="presentation">
|
|
<div v-if="image || icon || initials" class="presentation__avatar">
|
|
<Avatar
|
|
size="large"
|
|
:image="image"
|
|
:icon="icon"
|
|
:initials="initials"
|
|
:color="avatarColor"
|
|
/>
|
|
</div>
|
|
<div class="presentation__content">
|
|
<div class="presentation__title">{{ title }}</div>
|
|
<div v-if="subtitle" class="presentation__subtitle">{{ subtitle }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Presentation',
|
|
props: {
|
|
initials: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
image: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
avatarColor: {
|
|
type: String,
|
|
required: false,
|
|
default: 'primary',
|
|
},
|
|
title: {
|
|
type: String,
|
|
required: true,
|
|
default: '',
|
|
},
|
|
subtitle: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
},
|
|
}
|
|
</script>
|