<template>
    <div class="tag-cloud">
      <span v-for="tag in tags" :key="tag" class="tag">
        {{ tag }}
      </span>
    </div>
  </template>
  
  <script>
  export default {
    name: 'TagCloud',
    props: {
      tags: {
        type: Array,
        required: true
      }
    }
  }
  </script>
  
  <style scoped>
  .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .tag {
    background-color: #e8edf2;
    color: #7e7e8f;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 10px;
  }
  </style>