<template>
  <div class="icon-label-value">
    <slot name="icon"></slot>
    <div class="icon-info">
      <div class="info-label">
        <slot name="label">{{ label }}</slot>
      </div>
      <div class="info-value">{{ value }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'IconLabelValue',
  props: {
    label: String,
    value: String
  }
}
</script>

<style lang="scss" scoped>
.icon-label-value {
  display: inline-flex;
  justify-content: flex-start;
  align-items: stretch;
  .icon-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 20px;
    .info-label {
      font-size: 14px;
      font-weight: 400;
      color: #303133;
      line-height: 20px;
    }
    .info-value {
      font-size: 20px;
      font-weight: bold;
      color: #303133;
      line-height: 24px;
    }
  }
}
</style>
