<template>
<div class="label-text" :class="{'megaform': mega}">
    <div class="title" v-html="title"></div>
    <div class="value" v-html="value" v-if="value"></div>
    <div class="value" v-else>
        <slot></slot>
    </div>
</div>
</template>

<script>
export default {
    name: 'LabelText',
    props: {
        title: String,
        value: [String, Number, Array, Boolean, Date],
        mega: Boolean
    }
}
</script>
