<template>
  <div class="card">
    <div class="card-hd">
      <h3 class="card-hd__title">{{ title }}</h3>
      <div class="card-hd__aside">
        <slot name="aside"></slot>
      </div>
    </div>
    <div class="card-bd">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Card',
  props: {
    title: String
  }
}
</script>

<style lang="scss">
.card-hd {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.card-hd__title {
  font-size: 17px;
  font-weight: 500;
  color: #1b1b1b;
}
</style>
