<template>
  <div class="x-card">
    <p><slot></slot></p>
    <span>{{label}}</span>
  </div>
</template>

<script>
export default {
  name: 'XCard',
  props: ['label'],
}
</script>

<style lang="scss" scoped>
.x-card {
  background-color: #fff;
  text-align: center;
  color: #404C58;
  padding: 26px 0;
  border-radius: 4px;
  p {
    font-size: 24px;
    margin: 0;
    line-height: 40px;
  }
  span {
    font-size: 16px;
  }
}
</style>

