<template>
  <div class="parallelogram" v-for="index in props.numberOfDivs" :key="index"> </div>
</template>

<script setup lang="ts">
  const props = defineProps({
    color: { type: String },
    numberOfDivs: { type: Number },
    height: { type: Number, default: 15 },
  });
</script>

<style lang="scss" scoped>
  .parallelogram {
    width: 20px;
    height: v-bind('`${props.height}px`');
    margin-top: 6px;
    margin-right: 1px;
    background-color: v-bind('`${props.color}`');
    transform: skewX(-40deg);
  }
</style>
