<template>
  <div class="title">
    {{ title }}
    <slot></slot>
  </div>
</template>

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

<style lang="scss" scoped>
.title {
  position: relative;
  font-size: 18px;
  line-break: 24px;
  font-weight: 600;
  padding-left: 14px;
  margin-bottom: 20px;
  color: #13171E;
  &::before {
    position: absolute;
    content: '';
    width: 6px;
    height: 16px;
    border-radius: 3px;
    top: 50%;
    margin-top: -8px;
    background: linear-gradient(180deg, #185DA6 0%, #3195FF 100%);
    left: 0;
  }
}
</style>